projects
/
jspeed
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added altitude display to detail screen. Added option to disable auto rotation.
[jspeed]
/
src
/
orientation.h
diff --git
a/src/orientation.h
b/src/orientation.h
index
193f687
..
5848f22
100644
(file)
--- a/
src/orientation.h
+++ b/
src/orientation.h
@@
-29,8
+29,10
@@
class Orientation : public QtMobility::QOrientationSensor
public:
enum OrientationName {LANDSCAPE = 0x01, PORTRAIT = 0x02};
public:
enum OrientationName {LANDSCAPE = 0x01, PORTRAIT = 0x02};
+ enum OrientationType {TYPE_AUTO, TYPE_LANDSCAPE, TYPE_PORTRAIT};
Orientation(QMainWindow* window);
void setSupportedOrientations(int orientations);
Orientation(QMainWindow* window);
void setSupportedOrientations(int orientations);
+ void setOrientationType(OrientationType type);
public slots:
void update();
public slots:
void update();
@@
-40,11
+42,13
@@
signals:
private slots:
void onReadingChanged();
private slots:
void onReadingChanged();
+ void handleManualOrientation();
private:
QtMobility::QOrientationReading::Orientation current_;
int orientations_;
QMainWindow* window_;
private:
QtMobility::QOrientationReading::Orientation current_;
int orientations_;
QMainWindow* window_;
+ OrientationType type_;
};
#endif
};
#endif