summaryrefslogtreecommitdiffstats
path: root/examples/gestures/imagegestures/imagewidget.h
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-10-16 15:07:48 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-10-16 15:15:24 (GMT)
commit20fd14900702103442ee95dd025706c6f263c6f6 (patch)
treedccdb3b8110cbe931100b5e31d9432d775ff6c50 /examples/gestures/imagegestures/imagewidget.h
parentf0688de89cb82f6d3715bb03d7706fca4e6ab86f (diff)
downloadQt-20fd14900702103442ee95dd025706c6f263c6f6.zip
Qt-20fd14900702103442ee95dd025706c6f263c6f6.tar.gz
Qt-20fd14900702103442ee95dd025706c6f263c6f6.tar.bz2
Doc: Documentation for gesture features. Still a moving target.
Reviewed-by: Trust Me
Diffstat (limited to 'examples/gestures/imagegestures/imagewidget.h')
-rw-r--r--examples/gestures/imagegestures/imagewidget.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/gestures/imagegestures/imagewidget.h b/examples/gestures/imagegestures/imagewidget.h
index 7b91fbf..56e2316 100644
--- a/examples/gestures/imagegestures/imagewidget.h
+++ b/examples/gestures/imagegestures/imagewidget.h
@@ -53,28 +53,28 @@ class QPinchGesture;
class QSwipeGesture;
QT_END_NAMESPACE
+//! [class definition begin]
class ImageWidget : public QWidget
{
Q_OBJECT
public:
ImageWidget(QWidget *parent = 0);
-
void openDirectory(const QString &path);
protected:
- bool event(QEvent*);
- bool gestureEvent(QGestureEvent*);
- void paintEvent(QPaintEvent*);
- void resizeEvent(QResizeEvent*);
- void mouseDoubleClickEvent(QMouseEvent*);
+ bool event(QEvent *event);
+ void paintEvent(QPaintEvent *event);
+ void resizeEvent(QResizeEvent *event);
+ void mouseDoubleClickEvent(QMouseEvent *event);
private:
+ bool gestureEvent(QGestureEvent *event);
void panTriggered(QPanGesture*);
void pinchTriggered(QPinchGesture*);
void swipeTriggered(QSwipeGesture*);
+//! [class definition begin]
-private:
void updateImage();
QImage loadImage(const QString &fileName);
void loadImage();
@@ -93,6 +93,8 @@ private:
float verticalOffset;
float rotationAngle;
float scaleFactor;
+//! [class definition end]
};
+//! [class definition end]
#endif