summaryrefslogtreecommitdiffstats
path: root/demos/embedded/qmlclocks/qmlclocks.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-09-02 01:00:14 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-09-02 01:00:14 (GMT)
commit63eab5ef720936dbb5ee76686c6558e18a79e587 (patch)
tree920a29827e6fb83431e90c160616ca73924b455a /demos/embedded/qmlclocks/qmlclocks.cpp
parent661e237be622a5f7886cee7c06f9daa73d4a07d7 (diff)
parente3a76875d1eea19c29fd6c8dec4e0db9252c2d29 (diff)
downloadQt-63eab5ef720936dbb5ee76686c6558e18a79e587.zip
Qt-63eab5ef720936dbb5ee76686c6558e18a79e587.tar.gz
Qt-63eab5ef720936dbb5ee76686c6558e18a79e587.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'demos/embedded/qmlclocks/qmlclocks.cpp')
-rw-r--r--demos/embedded/qmlclocks/qmlclocks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/embedded/qmlclocks/qmlclocks.cpp b/demos/embedded/qmlclocks/qmlclocks.cpp
index d94cbdd..a09801b 100644
--- a/demos/embedded/qmlclocks/qmlclocks.cpp
+++ b/demos/embedded/qmlclocks/qmlclocks.cpp
@@ -42,6 +42,7 @@
#include <QtCore/QFileInfo>
#include <QtGui/QApplication>
#include <QtDeclarative/QDeclarativeView>
+#include <QtDeclarative/QDeclarativeEngine>
#if defined(Q_OS_SYMBIAN)
#include <eikenv.h>
@@ -58,6 +59,7 @@ int main(int argc, char *argv[])
QDeclarativeView view;
view.setSource(QUrl(mainQmlApp));
view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
+ QObject::connect(view.engine(), SIGNAL(quit()), &application, SLOT(quit()));
#if defined(QT_KEYPAD_NAVIGATION)
QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);