--- a/qtmobility/src/sensors/qorientationsensor.h Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/sensors/qorientationsensor.h Mon May 03 13:18:40 2010 +0300
@@ -57,20 +57,18 @@
public:
enum Orientation {
Undefined = 0,
- BottomUp,
- BottomDown,
+ TopUp,
+ TopDown,
LeftUp,
RightUp,
+ FaceUp,
FaceDown,
- FaceUp
};
Orientation orientation() const;
void setOrientation(Orientation orientation);
};
-// begin generated code
-
class Q_SENSORS_EXPORT QOrientationFilter : public QSensorFilter
{
public:
@@ -83,13 +81,11 @@
{
Q_OBJECT
public:
- explicit QOrientationSensor(QObject *parent = 0) : QSensor(parent)
- { setType(QOrientationSensor::type); }
+ explicit QOrientationSensor(QObject *parent = 0) : QSensor(QOrientationSensor::type, parent) {}
virtual ~QOrientationSensor() {}
QOrientationReading *reading() const { return static_cast<QOrientationReading*>(QSensor::reading()); }
static const char *type;
};
-// end generated code
QTM_END_NAMESPACE