diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-26 05:08:41 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-30 04:48:09 (GMT) |
commit | fce17c2847fa48410adae098b1df3db76fa4ef67 (patch) | |
tree | e1794bd2385278471eaebde0b87045b7f982f0b4 /demos/embedded/qmldialcontrol | |
parent | 7c81d90e490a95c67e0d0c9a184be479bd59817a (diff) | |
download | Qt-fce17c2847fa48410adae098b1df3db76fa4ef67.zip Qt-fce17c2847fa48410adae098b1df3db76fa4ef67.tar.gz Qt-fce17c2847fa48410adae098b1df3db76fa4ef67.tar.bz2 |
Fix application exiting in embedded qml examples
Task-number: QTBUG-13178
Reviewed-by: Martin Jones
Diffstat (limited to 'demos/embedded/qmldialcontrol')
-rw-r--r-- | demos/embedded/qmldialcontrol/qmldialcontrol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/embedded/qmldialcontrol/qmldialcontrol.cpp b/demos/embedded/qmldialcontrol/qmldialcontrol.cpp index 311cee0..56b21d7 100644 --- a/demos/embedded/qmldialcontrol/qmldialcontrol.cpp +++ b/demos/embedded/qmldialcontrol/qmldialcontrol.cpp @@ -42,6 +42,7 @@ #include <QtCore/QFileInfo> #include <QtGui/QApplication> #include <QtDeclarative/QDeclarativeView> +#include <QtDeclarative/QDeclarativeEngine> int main(int argc, char *argv[]) { @@ -51,6 +52,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); |