summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorTapani Mikola <tapani.mikola@nokia.com>2009-11-26 07:30:55 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-30 06:34:29 (GMT)
commitbd2ba54d85415047a581b7b441309572a756dcc5 (patch)
tree28442cc914bd9ac77b42382094fc8a36341a6b89 /src/declarative/util
parentc8cb256644c143f9d85eed0a8d295ffd05a2017d (diff)
downloadQt-bd2ba54d85415047a581b7b441309572a756dcc5.zip
Qt-bd2ba54d85415047a581b7b441309572a756dcc5.tar.gz
Qt-bd2ba54d85415047a581b7b441309572a756dcc5.tar.bz2
Qt.quit() added to qml.
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmlview.cpp1
-rw-r--r--src/declarative/util/qmlview.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp
index 62bcc07..afeead2 100644
--- a/src/declarative/util/qmlview.cpp
+++ b/src/declarative/util/qmlview.cpp
@@ -291,6 +291,7 @@ void QmlView::execute()
} else {
d->component = new QmlComponent(&d->engine, d->qml.toUtf8(), d->source, this);
}
+ connect (&d->engine, SIGNAL (quit ()), this, SIGNAL (quit ()));
if (!d->component->isLoading()) {
continueExecute();
diff --git a/src/declarative/util/qmlview.h b/src/declarative/util/qmlview.h
index 83c4f97..f4f58fd 100644
--- a/src/declarative/util/qmlview.h
+++ b/src/declarative/util/qmlview.h
@@ -90,6 +90,7 @@ Q_SIGNALS:
void initialSize(QSize size);
void sceneResized(QSize size);
void errors(const QList<QmlError> &error);
+ void quit ();
private Q_SLOTS:
void continueExecute();