diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-07-19 15:46:09 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-24 11:23:25 +0200 |
commit | 1760d541f35c851b6c08bc617a89cb16a1d8f975 (patch) | |
tree | 752b016c18fb5628e2c4b1b6ce5e16ab318c814b /src/plugins/sensors/blackberry/bbrotationsensor.h | |
parent | 0de0ead684a322103ec9cff3dcf5153ef4c1545c (diff) |
Blackberry: Remove QtGui dependency
In the Blackberry backend, we can't depend on QtGui and especially
not on the Blackberry QPA plugin, as Cascades uses
QCoreApplication, not QGuiApplication.
All QtGui functions are replaced with a new GuiHelper class, that
internally uses BPS.
Change-Id: Ia508e8b397050676c68612340d33cdbf57041076
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/sensors/blackberry/bbrotationsensor.h')
-rw-r--r-- | src/plugins/sensors/blackberry/bbrotationsensor.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/sensors/blackberry/bbrotationsensor.h b/src/plugins/sensors/blackberry/bbrotationsensor.h index 96511c4b..6fb7f7a0 100644 --- a/src/plugins/sensors/blackberry/bbrotationsensor.h +++ b/src/plugins/sensors/blackberry/bbrotationsensor.h @@ -53,6 +53,8 @@ public: static QString devicePath(); + void setGuiHelper(BbGuiHelper *guiHelper) Q_DECL_OVERRIDE; + protected: void additionalDeviceInit() Q_DECL_OVERRIDE; bool addDefaultRange() Q_DECL_OVERRIDE; @@ -60,13 +62,10 @@ protected: bool updateReadingFromEvent(const sensor_event_t &event, QRotationReading *reading) Q_DECL_OVERRIDE; bool isAutoAxisRemappingEnabled() const; - bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; - -private: +private slots: void updateOrientation(); - Qt::ScreenOrientation m_orientation; - Qt::ScreenOrientation m_nativeOrientation; +private: float m_mappingMatrix[4]; }; |