summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeengine.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-09-23 02:47:36 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-09-23 03:10:11 (GMT)
commitb22994c3e1574716c8fc6a1da52251443d3c9cc6 (patch)
treeb822d41c1bbcfc3618d17cce8704240c8883ac67 /src/declarative/qml/qdeclarativeengine.cpp
parent688b17d6c89414e34150846203edfb9ed6de737a (diff)
downloadQt-b22994c3e1574716c8fc6a1da52251443d3c9cc6.zip
Qt-b22994c3e1574716c8fc6a1da52251443d3c9cc6.tar.gz
Qt-b22994c3e1574716c8fc6a1da52251443d3c9cc6.tar.bz2
Improve docs for Qt.quit()
Diffstat (limited to 'src/declarative/qml/qdeclarativeengine.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index 80db230..26b3629 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -1783,7 +1783,9 @@ void QDeclarativeEnginePrivate::warning(QDeclarativeEnginePrivate *engine, const
/*!
\qmlmethod Qt::quit()
This function causes the QDeclarativeEngine::quit() signal to be emitted.
-Within the \l {QML Viewer}, this causes the launcher application to exit.
+Within the \l {QML Viewer}, this causes the launcher application to exit;
+to quit a C++ application when this method is called, connect the
+QDeclarativeEngine::quit() signal to the QCoreApplication::quit() slot.
*/
QScriptValue QDeclarativeEnginePrivate::quit(QScriptContext * /*ctxt*/, QScriptEngine *e)