path: root/src/corelib/kernel/qcoreapplication.cpp
diff options
authorFrederik Gladhorn <>2011-12-12 14:12:15 +0100
committerQt by Nokia <>2011-12-12 17:28:24 +0100
commit2e02aaf24c7803b672cdf815f33f3ecd48d98822 (patch)
tree6854d3807c34e0752e245fcfb5bec96c21826665 /src/corelib/kernel/qcoreapplication.cpp
parent1b6b1358bf2b3597747688332afc893ece2e0cfb (diff)
Make QApplication::type() set by QGuiApplication.
QApplication::type used to be static and set by the QApplicationPrivate constructors. In QCoreApplication we have the new application_type that should take its place. QApplication::GuiServer is deprecated (since it doesn't have any functionallity any more with QWS being removed). This change prepares QStyle to be called from a QQuickCanvase based application that does not inherit the QWidget version of QApplication. Change-Id: Ifbe992e25f1e5821fa047b6eb915f75fa675ab97 Reviewed-by: Paul Olav Tvete <>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 7ff82b1bca..7523963485 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -2587,6 +2587,14 @@ void QCoreApplication::setEventDispatcher(QAbstractEventDispatcher *eventDispatc
\sa Q_OBJECT, QObject::tr(), QObject::trUtf8()
+ \enum QCoreApplication::Type
+ \value Tty a console application
+ \value GuiClient a GUI application
+ \value GuiServer \e{Deprecated.} this value is only left for compatibility.
#include "moc_qcoreapplication.cpp"