summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.cpp
diff options
context:
space:
mode:
authoraavit <qt_aavit@ovi.com>2012-09-05 11:34:16 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-05 21:06:05 +0200
commitaba8de1bee8bbb9bc6b92e761a3dda0d829a211e (patch)
tree729812214c932c677de1d08000799828924c6da6 /src/gui/kernel/qguiapplication.cpp
parent49112c891bb84eee4083fdad4376cba60b0c7818 (diff)
Doc: Missing documentation added and doc errors fixed.
Change-Id: I573bf9622e38b54f2cb8c32fd402d477a1deb5c2 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r--src/gui/kernel/qguiapplication.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 61d52ff28b..d48112e0a4 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -334,7 +334,11 @@ static inline void clearFontUnlocked()
\sa arguments()
*/
+#ifdef Q_QDOC
+QGuiApplication::QGuiApplication(int &argc, char **argv)
+#else
QGuiApplication::QGuiApplication(int &argc, char **argv, int flags)
+#endif
: QCoreApplication(*new QGuiApplicationPrivate(argc, argv, flags))
{
d_func()->init();
@@ -644,6 +648,15 @@ QList<QScreen *> QGuiApplication::screens()
}
/*!
+ \fn void QGuiApplication::screenAdded(QScreen *screen)
+
+ This signal is emitted whenever a new screen \a screen has been added to the system.
+
+ \sa screens(), primaryScreen()
+*/
+
+
+/*!
Returns the top level window at the given position \a pos, if any.
*/
QWindow *QGuiApplication::topLevelAt(const QPoint &pos)
@@ -2179,6 +2192,17 @@ bool QGuiApplication::quitOnLastWindowClosed()
}
+/*!
+ \fn void QGuiApplication::lastWindowClosed()
+
+ This signal is emitted from exec() when the last visible
+ primary window (i.e. window with no parent) is closed.
+
+ By default, QGuiApplication quits after this signal is emitted. This feature
+ can be turned off by setting \l quitOnLastWindowClosed to false.
+
+ \sa QWindow::close(), QWindow::isTopLevel()
+*/
void QGuiApplicationPrivate::emitLastWindowClosed()
{