qtmobility/src/sensors/qrotationsensor.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/sensors/qrotationsensor.h	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/sensors/qrotationsensor.h	Mon May 03 13:18:40 2010 +0300
@@ -66,8 +66,6 @@
     void setZ(qreal z);
 };
 
-// begin generated code
-
 class Q_SENSORS_EXPORT QRotationFilter : public QSensorFilter
 {
 public:
@@ -79,14 +77,15 @@
 class Q_SENSORS_EXPORT QRotationSensor : public QSensor
 {
     Q_OBJECT
+#ifdef Q_QDOC
+    Q_PROPERTY(bool hasZ)
+#endif
 public:
-    explicit QRotationSensor(QObject *parent = 0) : QSensor(parent)
-    { setType(QRotationSensor::type); }
+    explicit QRotationSensor(QObject *parent = 0) : QSensor(QRotationSensor::type, parent) {}
     virtual ~QRotationSensor() {}
     QRotationReading *reading() const { return static_cast<QRotationReading*>(QSensor::reading()); }
     static const char *type;
 };
-// end generated code
 
 QTM_END_NAMESPACE