summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-10-13 09:52:07 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-10-13 09:52:07 +0200
commit7b360cd0a92e2f9f738a573dc3170795c2571d2c (patch)
tree1f0f3dca376e5a9c839fff4c814111ebd6384e88
parentaf64f953d4f01a7c7bd3415ff5edfff8d4f7c48d (diff)
downloadMultimedia-7b360cd0a92e2f9f738a573dc3170795c2571d2c.tar.gz
Multimedia-7b360cd0a92e2f9f738a573dc3170795c2571d2c.zip
Perform action on button close pressed
-rw-r--r--qml/main.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 3e84b29..408fbc6 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -44,6 +44,8 @@ ApplicationWindow {
button2.onClicked: messageDialog.show(qsTr("Button 2 pressed"))
button3.onClicked: messageDialog.show(qsTr("Button 3 pressed"))
+
+ buttonClose.onClicked: close()
}
MessageDialog {