diff options
author | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-05-28 14:30:26 (GMT) |
---|---|---|
committer | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-05-28 14:33:20 (GMT) |
commit | b42315c1d7811a0997181e188fc39a368ac9175f (patch) | |
tree | c71f5ce19e50a2259075131584ca2961c82ee7c3 /src/gui/kernel/qapplication.cpp | |
parent | 22b583438b8ef83535b0b94b695aba22a09cea2b (diff) | |
download | Qt-b42315c1d7811a0997181e188fc39a368ac9175f.zip Qt-b42315c1d7811a0997181e188fc39a368ac9175f.tar.gz Qt-b42315c1d7811a0997181e188fc39a368ac9175f.tar.bz2 |
Add runtime_graphics_system flag to QApplicationPrivate.
This flag can be internally used to detect if
QRuntimeGraphicsSystem is used. In some cases Qt needs
to know if runtime graphics system is used and it's
better to have a flag than relsolving graphics system
name every time.
Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 3d4bf5d..a2c058a 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -446,6 +446,7 @@ QPalette *QApplicationPrivate::set_pal = 0; // default palette set by pro QGraphicsSystem *QApplicationPrivate::graphics_system = 0; // default graphics system QString QApplicationPrivate::graphics_system_name; // graphics system id - for delayed initialization +bool QApplicationPrivate::runtime_graphics_system = false; Q_GLOBAL_STATIC(QMutex, applicationFontMutex) QFont *QApplicationPrivate::app_font = 0; // default application font |