summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-10-11 16:12:21 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-10-11 16:12:35 +0200
commitd0eb444a49f6064ecb896f62276e060cd8a4b1e8 (patch)
tree34d8dd637baf665225ada73e76604531cd2c75e5 /src/gui/kernel/qguiapplication.cpp
parentda0cb32b8ee7cc4a991a59420a411898e63a660e (diff)
parent894f86709080fe8d20875b402adce679963c49c2 (diff)
Merge remote-tracking branch 'origin/stable' into dev
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r--src/gui/kernel/qguiapplication.cpp32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index eeeb5aaf90..f555894b6d 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -645,7 +645,7 @@ void QGuiApplicationPrivate::hideModalWindow(QWindow *window)
}
/*
- Returns true if \a window is blocked by a modal window. If \a
+ Returns \c true if \a window is blocked by a modal window. If \a
blockingWindow is non-zero, *blockingWindow will be set to the blocking
window (or to zero if \a window is not blocked).
*/
@@ -1048,6 +1048,14 @@ void QGuiApplicationPrivate::createEventDispatcher()
eventDispatcher = platform_integration->createEventDispatcher();
}
+void QGuiApplicationPrivate::eventDispatcherReady()
+{
+ if (platform_integration == 0)
+ createPlatformIntegration();
+
+ platform_integration->initialize();
+}
+
#if defined(QT_DEBUG) && defined(Q_OS_LINUX)
// Find out if our parent process is gdb by looking at the 'exe' symlink under /proc.
static bool runningUnderDebugger()
@@ -2515,8 +2523,8 @@ void QGuiApplication::setFont(const QFont &font)
/*!
\fn bool QGuiApplication::isRightToLeft()
- Returns true if the application's layout direction is
- Qt::RightToLeft; otherwise returns false.
+ Returns \c true if the application's layout direction is
+ Qt::RightToLeft; otherwise returns \c false.
\sa layoutDirection(), isLeftToRight()
*/
@@ -2524,8 +2532,8 @@ void QGuiApplication::setFont(const QFont &font)
/*!
\fn bool QGuiApplication::isLeftToRight()
- Returns true if the application's layout direction is
- Qt::LeftToRight; otherwise returns false.
+ Returns \c true if the application's layout direction is
+ Qt::LeftToRight; otherwise returns \c false.
\sa layoutDirection(), isRightToLeft()
*/
@@ -2547,7 +2555,7 @@ void QGuiApplicationPrivate::notifyActiveWindowChange(QWindow *)
The default is true.
- If this property is true, the applications quits when the last visible
+ If this property is \c true, the applications quits when the last visible
primary window (i.e. window with no parent) is closed.
\sa quit(), QWindow::close()
@@ -2715,8 +2723,8 @@ void QGuiApplicationPrivate::setApplicationState(Qt::ApplicationState state)
/*!
\fn bool QGuiApplication::isSessionRestored() const
- Returns true if the application has been restored from an earlier
- \l{Session Management}{session}; otherwise returns false.
+ Returns \c true if the application has been restored from an earlier
+ \l{Session Management}{session}; otherwise returns \c false.
\sa sessionId(), commitDataRequest(), saveStateRequest()
*/
@@ -2725,8 +2733,8 @@ void QGuiApplicationPrivate::setApplicationState(Qt::ApplicationState state)
\since 5.0
\fn bool QGuiApplication::isSavingSession() const
- Returns true if the application is currently saving the
- \l{Session Management}{session}; otherwise returns false.
+ Returns \c true if the application is currently saving the
+ \l{Session Management}{session}; otherwise returns \c false.
This is true when commitDataRequest() and saveStateRequest() are emitted,
but also when the windows are closed afterwards by session management.
@@ -3008,8 +3016,8 @@ void QGuiApplication::setDesktopSettingsAware(bool on)
}
/*!
- Returns true if Qt is set to use the system's standard colors, fonts, etc.;
- otherwise returns false. The default is true.
+ Returns \c true if Qt is set to use the system's standard colors, fonts, etc.;
+ otherwise returns \c false. The default is true.
\sa setDesktopSettingsAware()
*/