equal
deleted
inserted
replaced
64 |
64 |
65 qreal z() const; |
65 qreal z() const; |
66 void setZ(qreal z); |
66 void setZ(qreal z); |
67 }; |
67 }; |
68 |
68 |
69 // begin generated code |
|
70 |
|
71 class Q_SENSORS_EXPORT QRotationFilter : public QSensorFilter |
69 class Q_SENSORS_EXPORT QRotationFilter : public QSensorFilter |
72 { |
70 { |
73 public: |
71 public: |
74 virtual bool filter(QRotationReading *reading) = 0; |
72 virtual bool filter(QRotationReading *reading) = 0; |
75 private: |
73 private: |
77 }; |
75 }; |
78 |
76 |
79 class Q_SENSORS_EXPORT QRotationSensor : public QSensor |
77 class Q_SENSORS_EXPORT QRotationSensor : public QSensor |
80 { |
78 { |
81 Q_OBJECT |
79 Q_OBJECT |
|
80 #ifdef Q_QDOC |
|
81 Q_PROPERTY(bool hasZ) |
|
82 #endif |
82 public: |
83 public: |
83 explicit QRotationSensor(QObject *parent = 0) : QSensor(parent) |
84 explicit QRotationSensor(QObject *parent = 0) : QSensor(QRotationSensor::type, parent) {} |
84 { setType(QRotationSensor::type); } |
|
85 virtual ~QRotationSensor() {} |
85 virtual ~QRotationSensor() {} |
86 QRotationReading *reading() const { return static_cast<QRotationReading*>(QSensor::reading()); } |
86 QRotationReading *reading() const { return static_cast<QRotationReading*>(QSensor::reading()); } |
87 static const char *type; |
87 static const char *type; |
88 }; |
88 }; |
89 // end generated code |
|
90 |
89 |
91 QTM_END_NAMESPACE |
90 QTM_END_NAMESPACE |
92 |
91 |
93 #endif |
92 #endif |
94 |
93 |