#ifndef TOUCHWIDGET_H #define TOUCHWIDGET_H #include class TouchWidget : public QWidget { Q_OBJECT public: bool acceptTouchBegin, acceptTouchUpdate, acceptTouchEnd; bool seenTouchBegin, seenTouchUpdate, seenTouchEnd; bool closeWindowOnTouchEnd; int touchPointCount; bool acceptMousePress, acceptMouseMove, acceptMouseRelease; bool seenMousePress, seenMouseMove, seenMouseRelease; bool closeWindowOnMouseRelease; inline TouchWidget(QWidget *parent = 0) : QWidget(parent) { reset(); } void reset(); bool event(QEvent *event); }; #endif // TOUCHWIDGET_H