summaryrefslogtreecommitdiffstats
path: root/demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp')
-rw-r--r--demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp b/demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp
index 2b9db5e..d9cf67c 100644
--- a/demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp
+++ b/demos/embedded/qmlphotoviewer/qmlphotoviewer.cpp
@@ -96,6 +96,8 @@ int main(int argc, char *argv[])
view.setSource(QUrl(mainQmlApp));
view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
+ QObject::connect(view.engine(), SIGNAL(quit()), &application, SLOT(quit()));
+
#if defined(Q_OS_SYMBIAN)
view.showFullScreen();
#else // Q_OS_SYMBIAN