summaryrefslogtreecommitdiffstats
path: root/examples/widgets/gestures/imagegestures/mainwidget.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-03-27 09:57:59 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-28 12:59:13 +0100
commitc0701f3789acf3234e9f6431b4e8c7dc3ccefabb (patch)
treed9dba40b4c270a0cf7939946b2e2f73b4c1c9144 /examples/widgets/gestures/imagegestures/mainwidget.h
parent4cb0e9650599cb9b94651bb4f9e62bfdafde1ec4 (diff)
Polish the image gestures example.
- Add a command line parser to properly evaluate help option and directory argument, add options to disable gestures. - Add logging category so that the user can actually see what is happening. - Scale large images. - Use qreal instead of float. - Minor polishing: set window title, position file dialog at pictures location. Task-number: QTBUG-37759 Task-number: QTBUG-37203 Change-Id: Ibaf54a13034b150386a8aee476f83a9eba298298 Reviewed-by: Indrajit Tapadar <indrajit.tapadar@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'examples/widgets/gestures/imagegestures/mainwidget.h')
-rw-r--r--examples/widgets/gestures/imagegestures/mainwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/gestures/imagegestures/mainwidget.h b/examples/widgets/gestures/imagegestures/mainwidget.h
index 5135466fde..79ed3a087a 100644
--- a/examples/widgets/gestures/imagegestures/mainwidget.h
+++ b/examples/widgets/gestures/imagegestures/mainwidget.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
@@ -51,6 +51,7 @@ class MainWidget : public QMainWindow
public:
MainWidget(QWidget *parent = 0);
+ void grabGestures(const QList<Qt::GestureType> &gestures);
public slots:
void openDirectory(const QString &path);