diff options
author | Jerome Pasion <jerome.pasion@digia.com> | 2012-11-02 14:59:56 +0100 |
---|---|---|
committer | Jerome Pasion <jerome.pasion@digia.com> | 2012-11-02 15:02:08 +0100 |
commit | 47c45bb1e487b3823281683c1110d9269f144582 (patch) | |
tree | 4c687d46d9aa7d90f064a25e6c7f0241ae28e16d /examples/shared/shared.h | |
parent | 677be9a27770ff48dd771ec4fc1c66139aac4aa8 (diff) | |
parent | 7d94fa8e074ba816751c60bd0ad3c63b3c0b0a27 (diff) |
Merge branch 'master' of ssh://codereview.qt-project.org/qt/qtdeclarative into newdocs
Change-Id: Icced038fbdb309d8928213d3753a27fe5a6b1137
Diffstat (limited to 'examples/shared/shared.h')
-rw-r--r-- | examples/shared/shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/shared/shared.h b/examples/shared/shared.h index 0e9395a108..bf3857f896 100644 --- a/examples/shared/shared.h +++ b/examples/shared/shared.h @@ -39,6 +39,7 @@ ****************************************************************************/ #include <QDir> #include <QGuiApplication> +#include <QQmlEngine> #include <QQuickView> #define DECLARATIVE_EXAMPLE_MAIN(NAME) int main(int argc, char* argv[]) \ {\ @@ -68,6 +69,7 @@ qWarning("Could not find file '%s'", qPrintable(QDir::toNativeSeparators(fileName)));\ return -1;\ }\ + view.connect(view.engine(), SIGNAL(quit()), &app, SLOT(quit()));\ view.setSource(QUrl::fromLocalFile(fileName));\ view.show();\ return app.exec();\ |