summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/blackberry/bbrotationsensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sensors/blackberry/bbrotationsensor.h')
-rw-r--r--src/plugins/sensors/blackberry/bbrotationsensor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/sensors/blackberry/bbrotationsensor.h b/src/plugins/sensors/blackberry/bbrotationsensor.h
index 475ad223..d2fd8a05 100644
--- a/src/plugins/sensors/blackberry/bbrotationsensor.h
+++ b/src/plugins/sensors/blackberry/bbrotationsensor.h
@@ -58,7 +58,16 @@ protected:
bool addDefaultRange();
qreal convertValue(float bbValue);
bool updateReadingFromEvent(const sensor_event_t &event, QRotationReading *reading);
+ bool isAutoAxisRemappingEnabled() const;
+ bool eventFilter(QObject *object, QEvent *event);
+
+private:
+ void updateOrientation();
+
+ Qt::ScreenOrientation m_orientation;
+ Qt::ScreenOrientation m_nativeOrientation;
+ float m_mappingMatrix[4];
};
#endif