diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-10-20 16:36:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-21 21:29:46 +0200 |
commit | fc14bd2c92d42aa055ce634e246820cef426ec9c (patch) | |
tree | 1403dd2d11621d36a4d2a7ec2e986a5b85bcbf2d /src/widgets/kernel/qapplication.h | |
parent | c7df1af337e0d5a013a2f1c17bb14df083769410 (diff) |
Widgets: Remove Q_WS_QPA and qpa-sections from .pro files.
Enable compilation without -qpa.
- Remove conditionals from Q_WS_QPA sections.
- Rename precompiled header.
- Remove gui-related Q_OS_SYMBIAN-#ifdef sections.
- Leave other Q_WS code in for reference.
Change-Id: I16326b631fff483aec8edd2f7a2e7a1822eab814
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qapplication.h')
-rw-r--r-- | src/widgets/kernel/qapplication.h | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/src/widgets/kernel/qapplication.h b/src/widgets/kernel/qapplication.h index 8fd988f7a8..7ddbe77667 100644 --- a/src/widgets/kernel/qapplication.h +++ b/src/widgets/kernel/qapplication.h @@ -50,20 +50,10 @@ #ifdef QT_INCLUDE_COMPAT # include <QtWidgets/qdesktopwidget.h> #endif -#ifdef Q_WS_QWS -# include <QtGui/qrgb.h> -# include <QtGui/qtransportauth_qws.h> -#endif -#ifdef Q_WS_QPA -# include <QtGui/qguiapplication.h> -#endif +#include <QtGui/qguiapplication.h> QT_BEGIN_HEADER -#if defined(Q_OS_SYMBIAN) -class CApaApplication; -#endif - QT_BEGIN_NAMESPACE QT_MODULE(Gui) @@ -76,14 +66,7 @@ class QIcon; class QInputContext; template <typename T> class QList; class QLocale; -#if defined(Q_WS_QWS) -class QDecoration; -#elif defined(Q_WS_QPA) class QPlatformNativeInterface; -#endif -#if defined(Q_OS_SYMBIAN) -class QSymbianEvent; -#endif class QApplication; class QApplicationPrivate; @@ -92,11 +75,7 @@ class QApplicationPrivate; #endif #define qApp (static_cast<QApplication *>(QCoreApplication::instance())) -#ifdef Q_WS_QPA #define QApplicationBase QGuiApplication -#else -#define QApplicationBase QCoreApplication -#endif class Q_WIDGETS_EXPORT QApplication : public QApplicationBase { @@ -123,10 +102,6 @@ class Q_WIDGETS_EXPORT QApplication : public QApplicationBase public: enum Type { Tty, GuiClient, GuiServer }; -#ifdef Q_OS_SYMBIAN - typedef CApaApplication * (*QS60MainApplicationFactory)(); -#endif - #ifndef qdoc QApplication(int &argc, char **argv, int = ApplicationFlags); QApplication(int &argc, char **argv, bool GUIenabled, int = ApplicationFlags); @@ -135,9 +110,6 @@ public: QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = ApplicationFlags); QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = ApplicationFlags); #endif -#if defined(Q_OS_SYMBIAN) - QApplication(QApplication::QS60MainApplicationFactory factory, int &argc, char **argv, int = ApplicationFlags); -#endif #endif virtual ~QApplication(); @@ -174,9 +146,6 @@ public: static QWidget *activePopupWidget(); static QWidget *activeModalWidget(); -#if !defined(Q_WS_QPA) && !defined(QT_NO_CLIPBOARD) - static QClipboard *clipboard(); -#endif static QWidget *focusWidget(); static QWidget *activeWindow(); @@ -230,10 +199,6 @@ public: virtual int x11ClientMessage(QWidget*, XEvent*, bool passive_only); int x11ProcessEvent(XEvent*); #endif -#if defined(Q_OS_SYMBIAN) - int symbianProcessEvent(const QSymbianEvent *event); - virtual bool symbianEventFilter(const QSymbianEvent *event); -#endif #if defined(Q_WS_QWS) virtual bool qwsEventFilter(QWSEvent *); int qwsProcessEvent(QWSEvent*); @@ -245,10 +210,7 @@ public: #endif #endif -#if defined(Q_WS_QPA) static QPlatformNativeInterface *platformNativeInterface(); -#endif - #if defined(Q_WS_WIN) void winFocus(QWidget *, bool); @@ -321,9 +283,6 @@ protected: QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0); QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0); #endif -#if defined(Q_OS_SYMBIAN) || defined(qdoc) - QApplication(QApplication::QS60MainApplicationFactory factory, int &argc, char **argv); -#endif #endif private: @@ -364,9 +323,6 @@ private: #if defined(QT_RX71_MULTITOUCH) Q_PRIVATE_SLOT(d_func(), void _q_readRX71MultiTouchEvents()) #endif -#if defined(Q_OS_SYMBIAN) - Q_PRIVATE_SLOT(d_func(), void _q_aboutToQuit()) -#endif }; QT_END_NAMESPACE |