diff options
author | Gerry Boland <gerry.boland@canonical.com> | 2015-05-01 14:31:30 +0100 |
---|---|---|
committer | Gerry Boland <gerry.boland@canonical.com> | 2015-05-01 14:31:30 +0100 |
commit | c55b26f96ce02b6811f4ca86d950ddabb3d529f7 (patch) | |
tree | d310c8696f7e38e57d8f991d607ce89f0686bb7f /demos | |
parent | b9e9716a8d7e3cc8e38e58d94622eed5a68cc302 (diff) |
[qpa] have QMirServer own the MirServer instance. Clean up the QMirServer API with view of making it public API
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: { |