equal
deleted
inserted
replaced
47 #include <QtCore/qdatetime.h> |
47 #include <QtCore/qdatetime.h> |
48 #include <QtCore/qpoint.h> |
48 #include <QtCore/qpoint.h> |
49 #include <QtCore/qrect.h> |
49 #include <QtCore/qrect.h> |
50 #include <QtCore/qmetatype.h> |
50 #include <QtCore/qmetatype.h> |
51 |
51 |
|
52 #ifndef QT_NO_GESTURES |
|
53 |
52 QT_BEGIN_HEADER |
54 QT_BEGIN_HEADER |
53 |
55 |
54 Q_DECLARE_METATYPE(Qt::GestureState) |
56 Q_DECLARE_METATYPE(Qt::GestureState) |
55 |
57 |
56 QT_BEGIN_NAMESPACE |
58 QT_BEGIN_NAMESPACE |
130 class QPinchGesturePrivate; |
132 class QPinchGesturePrivate; |
131 class Q_GUI_EXPORT QPinchGesture : public QGesture |
133 class Q_GUI_EXPORT QPinchGesture : public QGesture |
132 { |
134 { |
133 Q_OBJECT |
135 Q_OBJECT |
134 Q_DECLARE_PRIVATE(QPinchGesture) |
136 Q_DECLARE_PRIVATE(QPinchGesture) |
|
137 Q_FLAGS(ChangeFlags ChangeFlag) |
135 |
138 |
136 public: |
139 public: |
137 enum ChangeFlag { |
140 enum ChangeFlag { |
138 ScaleFactorChanged = 0x1, |
141 ScaleFactorChanged = 0x1, |
139 RotationAngleChanged = 0x2, |
142 RotationAngleChanged = 0x2, |
187 void setRotationAngle(qreal value); |
190 void setRotationAngle(qreal value); |
188 |
191 |
189 friend class QPinchGestureRecognizer; |
192 friend class QPinchGestureRecognizer; |
190 }; |
193 }; |
191 |
194 |
|
195 Q_DECLARE_OPERATORS_FOR_FLAGS(QPinchGesture::ChangeFlags) |
|
196 |
192 QT_END_NAMESPACE |
197 QT_END_NAMESPACE |
193 |
198 |
194 Q_DECLARE_METATYPE(QPinchGesture::ChangeFlags) |
199 Q_DECLARE_METATYPE(QPinchGesture::ChangeFlags) |
195 |
200 |
196 QT_BEGIN_NAMESPACE |
201 QT_BEGIN_NAMESPACE |
248 QTapAndHoldGesture(QObject *parent = 0); |
253 QTapAndHoldGesture(QObject *parent = 0); |
249 |
254 |
250 QPointF position() const; |
255 QPointF position() const; |
251 void setPosition(const QPointF &pos); |
256 void setPosition(const QPointF &pos); |
252 |
257 |
|
258 static void setTimeout(int msecs); |
|
259 static int timeout(); |
|
260 |
253 friend class QTapAndHoldGestureRecognizer; |
261 friend class QTapAndHoldGestureRecognizer; |
254 }; |
262 }; |
255 |
263 |
256 QT_END_NAMESPACE |
264 QT_END_NAMESPACE |
257 |
265 |
258 Q_DECLARE_METATYPE(QGesture::GestureCancelPolicy) |
266 Q_DECLARE_METATYPE(QGesture::GestureCancelPolicy) |
259 QT_END_HEADER |
267 QT_END_HEADER |
260 |
268 |
|
269 #endif // QT_NO_GESTURES |
|
270 |
261 #endif // QGESTURE_H |
271 #endif // QGESTURE_H |