summaryrefslogtreecommitdiffstats
path: root/demos/embedded/qmleasing
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-08-26 05:08:41 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-08-30 04:48:09 (GMT)
commitfce17c2847fa48410adae098b1df3db76fa4ef67 (patch)
treee1794bd2385278471eaebde0b87045b7f982f0b4 /demos/embedded/qmleasing
parent7c81d90e490a95c67e0d0c9a184be479bd59817a (diff)
downloadQt-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/qmleasing')
-rw-r--r--demos/embedded/qmleasing/deployment.pri2
-rw-r--r--demos/embedded/qmleasing/qmleasing.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/demos/embedded/qmleasing/deployment.pri b/demos/embedded/qmleasing/deployment.pri
index 984f5c8..d3621cb 100644
--- a/demos/embedded/qmleasing/deployment.pri
+++ b/demos/embedded/qmleasing/deployment.pri
@@ -4,5 +4,5 @@ symbian {
qmleasing_uid3 = A000E3FE
qmleasing_files.path = $$APP_PRIVATE_DIR_BASE/$$qmleasing_uid3
}
-qmleasing_files.sources = $$qmleasing_src/easing.qml
+qmleasing_files.sources = $$qmleasing_src/easing.qml $$qmleasing_src/content
DEPLOYMENT += qmleasing_files
diff --git a/demos/embedded/qmleasing/qmleasing.cpp b/demos/embedded/qmleasing/qmleasing.cpp
index d326468..713fe67 100644
--- a/demos/embedded/qmleasing/qmleasing.cpp
+++ b/demos/embedded/qmleasing/qmleasing.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);