| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Item { |
| 4 |
id: root |
| 5 |
|
| 6 |
signal menuBack(); |
| 7 |
signal closeCanvas(); |
| 8 |
signal reconnectCanvas(); |
| 9 |
|
| 10 |
Rectangle { |
| 11 |
anchors.centerIn: parent |
| 12 |
width: buttons.childrenRect.width + 20 |
| 13 |
height: buttons.childrenRect.height + 20 |
| 14 |
border.width: 1 |
| 15 |
border.color: "orange" |
| 16 |
color: "#5f5f5f" |
| 17 |
|
| 18 |
Column { |
| 19 |
id: buttons |
| 20 |
spacing: 30 |
| 21 |
|
| 22 |
Button { |
| 23 |
label: qsTr("Back") |
| 24 |
onClicked: root.menuBack(); |
| 25 |
anchors.horizontalCenter: parent.horizontalCenter |
| 26 |
} |
| 27 |
|
| 28 |
Button { |
| 29 |
label: qsTr("Close") |
| 30 |
onClicked: root.closeCanvas(); |
| 31 |
anchors.horizontalCenter: parent.horizontalCenter |
| 32 |
} |
| 33 |
|
| 34 |
Button { |
| 35 |
label: qsTr("Reconnect") |
| 36 |
onClicked: root.reconnectCanvas(); |
| 37 |
anchors.horizontalCenter: parent.horizontalCenter |
| 38 |
} |
| 39 |
} // of buttons column |
| 40 |
} |
| 41 |
} |