summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-11-22 14:29:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 20:40:02 +0100
commit553e216d891177ee0c2cea70bbd7f21103fc7795 (patch)
tree99466d02c57215f874000b7b6c780e82112e92f1 /src/gui
parente4e8578c350102a387aa023e7ffc3adcde3d8ae1 (diff)
Remove QApplication::type() and make QCoreApplication::Type internal
These Qt3 legacy application types do not match the application types available in Qt5. Thus, the decision was to kill the confusing and mostly useless type enum. Use for example qobject_cast instead to find out the application type. Task-number: QTBUG-28093 Change-Id: Ia8cf7c3ea98a3cea27f74760d62e519ea10bce9f Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qguiapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 949c963d0c..61c733b493 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -391,7 +391,7 @@ QGuiApplicationPrivate::QGuiApplicationPrivate(int &argc, char **argv, int flags
lastTouchType(QEvent::TouchEnd)
{
self = this;
- application_type = QCoreApplication::GuiClient;
+ application_type = QCoreApplicationPrivate::Gui;
}
/*!