diff options
author | Jason Barron <jbarron@trolltech.com> | 2010-04-20 08:09:00 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2010-04-21 07:40:59 (GMT) |
commit | 904d205b8d69b341aa8f25dbb7a7871e6f56c2ef (patch) | |
tree | eef20d069d3f9fb077fb16380d32778cb836e005 /src/gui/kernel/qt_s60_p.h | |
parent | 199caad8812128636a76816e931d24dcd2007af6 (diff) | |
download | Qt-904d205b8d69b341aa8f25dbb7a7871e6f56c2ef.zip Qt-904d205b8d69b341aa8f25dbb7a7871e6f56c2ef.tar.gz Qt-904d205b8d69b341aa8f25dbb7a7871e6f56c2ef.tar.bz2 |
Use QDesktopWidget as a status pane observer on Symbian.
Now that the S60 screen furniture construction is delayed, we need to
manually set the status pane observer to get notifications about
changes in the size of the status pane. Using the AppUi would have been
the obvious choice here, but sadly CAknAppUi (base class for
QS60MainAppUi) uses private inheritance when implementing the
MEikStatusPaneObserver interface.
To work around this problem we make QSymbianControl implement the
interface and use the instance of this class that is associated with
QDesktopWidget to recevive the notifications and then call the function
in the AppUi to maintain the same behavior.
Reviewed-by: Janne Anttila
Reviewed-by: mread
Diffstat (limited to 'src/gui/kernel/qt_s60_p.h')
-rw-r--r-- | src/gui/kernel/qt_s60_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qt_s60_p.h b/src/gui/kernel/qt_s60_p.h index a714221..58da302 100644 --- a/src/gui/kernel/qt_s60_p.h +++ b/src/gui/kernel/qt_s60_p.h @@ -155,7 +155,7 @@ class QLongTapTimer; class QSymbianControl : public CCoeControl, public QAbstractLongTapObserver #ifdef Q_WS_S60 -, public MAknFadedComponent +, public MAknFadedComponent, public MEikStatusPaneObserver #endif { public: @@ -183,6 +183,7 @@ public: #ifdef Q_WS_S60 void FadeBehindPopup(bool fade){ popupFader.FadeBehindPopup( this, this, fade); } + void HandleStatusPaneSizeChange(); protected: // from MAknFadedComponent TInt CountFadedComponents() {return 1;} |