summaryrefslogtreecommitdiffstats
path: root/scroller/qflickgesture.h
diff options
context:
space:
mode:
Diffstat (limited to 'scroller/qflickgesture.h')
-rw-r--r--scroller/qflickgesture.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/scroller/qflickgesture.h b/scroller/qflickgesture.h
index b6571d0..5262bf0 100644
--- a/scroller/qflickgesture.h
+++ b/scroller/qflickgesture.h
@@ -39,8 +39,8 @@
**
****************************************************************************/
-#ifndef QFLICKGESTURE_P_H
-#define QFLICKGESTURE_P_H
+#ifndef QFLICKGESTURE_H
+#define QFLICKGESTURE_H
//
// W A R N I N G
@@ -56,8 +56,6 @@
#include "qgesturerecognizer.h"
#include "private/qgesture_p.h"
-#include "qkineticscroller.h"
-
QT_BEGIN_NAMESPACE
class QFlickGestureRecognizer : public QGestureRecognizer
@@ -77,14 +75,30 @@ class Q_GUI_EXPORT QFlickGesture : public QGesture
Q_OBJECT
public:
- QFlickGesture(QWidget *widget, QObject *parent = 0);
+ enum State
+ {
+ StateInactive,
+ StatePressed,
+ StateDragging,
+ StateScrolling,
+ };
- friend class QFlickGestureRecognizer;
+public:
+ QFlickGesture(QObject *receiver, QObject *parent = 0);
+ virtual ~QFlickGesture();
+
+ // void reset();
+
+protected:
+ QFlickGesturePrivate* d_ptr;
private:
- QFlickGesturePrivate *d;
+ Q_DISABLE_COPY(QFlickGesture)
+ Q_DECLARE_PRIVATE(QFlickGesture)
+
+ friend class QFlickGestureRecognizer;
};
QT_END_NAMESPACE
-#endif // QFLICKGESTURES_P_H
+#endif // QFLICKGESTURES_H