diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/qml-demo-shell/qml-demo-shell.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/qml-demo-shell/qml-demo-shell.qml b/demos/qml-demo-shell/qml-demo-shell.qml index 2a620e3..f8ed58a 100644 --- a/demos/qml-demo-shell/qml-demo-shell.qml +++ b/demos/qml-demo-shell/qml-demo-shell.qml @@ -110,6 +110,21 @@ Rectangle { y: point.y } + Rectangle { + width: 60 + height: 40 + color: "red" + anchors { right: parent.right; bottom: parent.bottom } + Text { + anchors.centerIn: parent + text: "Quit" + } + MouseArea { + anchors.fill: parent + onClicked: Qt.quit() + } + } + Connections { target: SurfaceManager onSurfaceCreated: { |