From 553e216d891177ee0c2cea70bbd7f21103fc7795 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 22 Nov 2012 14:29:07 +0100 Subject: 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 Reviewed-by: Thiago Macieira --- src/gui/kernel/qguiapplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/kernel/qguiapplication.cpp') 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; } /*! -- cgit v1.2.3