diff options
author | axis <qt-info@nokia.com> | 2009-10-20 13:15:51 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-10-21 10:56:50 (GMT) |
commit | 5370e5ff5481a64a7d4a7c182155ce893740abe0 (patch) | |
tree | 7c10423b6a446ce537d60cbae33e6b9ce8e4c7ae /src/gui/kernel/qapplication.h | |
parent | 3ce94323a886abf6047135f188a6e10082a3e28d (diff) | |
download | Qt-5370e5ff5481a64a7d4a7c182155ce893740abe0.zip Qt-5370e5ff5481a64a7d4a7c182155ce893740abe0.tar.gz Qt-5370e5ff5481a64a7d4a7c182155ce893740abe0.tar.bz2 |
Cleaned up the API of the Symbian event hooks.
The two major points were:
- Replacing "s60" with "symbian" in all event handling functions,
since there is nothing S60-specific about them.
- Replace the Symbian event types with the encapsulating
QSymbianEvent container. This allows us to cope with more types of
events in the future without having to add new virtual functions.
AutoTest: QWidget passed
Task: QT-1156
RevBy: Jason Barron
RevBy: Shane Kearns
RevBy: Sami Merila
Diffstat (limited to 'src/gui/kernel/qapplication.h')
-rw-r--r-- | src/gui/kernel/qapplication.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/kernel/qapplication.h b/src/gui/kernel/qapplication.h index 12b398d..5a8e325 100644 --- a/src/gui/kernel/qapplication.h +++ b/src/gui/kernel/qapplication.h @@ -61,9 +61,6 @@ QT_BEGIN_HEADER -#if defined(Q_OS_SYMBIAN) -class TWsEvent; -#endif #if defined(Q_WS_S60) class CApaApplication; #endif @@ -83,6 +80,9 @@ class QLocale; #if defined(Q_WS_QWS) class QDecoration; #endif +#if defined(Q_OS_SYMBIAN) +class QSymbianEvent; +#endif class QApplication; class QApplicationPrivate; @@ -241,10 +241,8 @@ public: int x11ProcessEvent(XEvent*); #endif #if defined(Q_OS_SYMBIAN) - int s60ProcessEvent(TWsEvent *event); - virtual bool s60EventFilter(TWsEvent *aEvent); - void symbianHandleCommand(int command); - void symbianResourceChange(int type); + int symbianProcessEvent(const QSymbianEvent *event); + virtual bool symbianEventFilter(const QSymbianEvent *event); #endif #if defined(Q_WS_QWS) virtual bool qwsEventFilter(QWSEvent *); |