Remove QApplication::type() and make QCoreApplication::Type internal
authorJ-P Nurmi <jpnurmi@digia.com>
Thu, 22 Nov 2012 13:29:07 +0000 (14:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 23 Nov 2012 19:40:02 +0000 (20:40 +0100)
commit553e216d891177ee0c2cea70bbd7f21103fc7795
tree99466d02c57215f874000b7b6c780e82112e92f1
parente4e8578c350102a387aa023e7ffc3adcde3d8ae1
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>
dist/changes-5.0.0
src/corelib/kernel/qcoreapplication.h
src/corelib/kernel/qcoreapplication_p.h
src/gui/kernel/qguiapplication.cpp
src/widgets/kernel/qapplication.cpp
src/widgets/kernel/qapplication.h
src/widgets/kernel/qapplication_p.h