| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Rectangle { |
| 4 |
id: root |
| 5 |
border.width: 1 |
| 6 |
border.color: "orange" |
| 7 |
color: "#1f1f1f" |
| 8 |
height: contentBox.childrenRect.height + 40 |
| 9 |
width: 600 |
| 10 |
|
| 11 |
Component.onCompleted: { |
| 12 |
if (!_application.showGettingStarted) { |
| 13 |
root.visible = false; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
Column { |
| 18 |
id: contentBox |
| 19 |
width: parent.width - 20 |
| 20 |
y: 20 |
| 21 |
spacing: 20 |
| 22 |
|
| 23 |
anchors { |
| 24 |
horizontalCenter: parent.horizontalCenter |
| 25 |
} |
| 26 |
|
| 27 |
Text { |
| 28 |
width: parent.width |
| 29 |
text: _application.gettingStartedText |
| 30 |
wrapMode: Text.WordWrap |
| 31 |
color: "white" |
| 32 |
} |
| 33 |
|
| 34 |
Row { |
| 35 |
id: buttonRow |
| 36 |
spacing: 20 |
| 37 |
anchors.horizontalCenter: parent.horizontalCenter |
| 38 |
height: childrenRect.height |
| 39 |
|
| 40 |
Button { |
| 41 |
label: qsTr("Okay") |
| 42 |
onClicked: root.visible = false |
| 43 |
width: 150 |
| 44 |
} |
| 45 |
|
| 46 |
Button { |
| 47 |
label: qsTr("Don't show again") |
| 48 |
onClicked: { |
| 49 |
_application.showGettingStarted = false; |
| 50 |
root.visible = false |
| 51 |
} |
| 52 |
width: 150 |
| 53 |
} |
| 54 |
} |
| 55 |
} |
| 56 |
} |