Without this patch, the samegame's quit button does not work.
Change-Id: I904832d018d589e90564534ac1eca02e0dbb54fc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
****************************************************************************/
#include <QDir>
#include <QGuiApplication>
+#include <QQmlEngine>
#include <QQuickView>
#define DECLARATIVE_EXAMPLE_MAIN(NAME) int main(int argc, char* argv[]) \
{\
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();\