summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer
diff options
context:
space:
mode:
authorTapani Mikola <tapani.mikola@nokia.com>2009-11-26 07:30:55 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-30 06:34:29 (GMT)
commitbd2ba54d85415047a581b7b441309572a756dcc5 (patch)
tree28442cc914bd9ac77b42382094fc8a36341a6b89 /tools/qmlviewer
parentc8cb256644c143f9d85eed0a8d295ffd05a2017d (diff)
downloadQt-bd2ba54d85415047a581b7b441309572a756dcc5.zip
Qt-bd2ba54d85415047a581b7b441309572a756dcc5.tar.gz
Qt-bd2ba54d85415047a581b7b441309572a756dcc5.tar.bz2
Qt.quit() added to qml.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index ea0936b..6130ade 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -340,6 +340,7 @@ QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags)
QObject::connect(canvas, SIGNAL(sceneResized(QSize)), this, SLOT(sceneResized(QSize)));
QObject::connect(canvas, SIGNAL(initialSize(QSize)), this, SLOT(adjustSizeSlot()));
QObject::connect(canvas, SIGNAL(errors(QList<QmlError>)), this, SLOT(executeErrors()));
+ QObject::connect(canvas, SIGNAL(quit()), QCoreApplication::instance (), SLOT(quit()));
if (!(flags & Qt::FramelessWindowHint))
createMenu(menuBar(),0);