summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-30 16:14:53 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 10:26:05 (GMT)
commit54db3afc9797a3adf5a38f35f6338960924e9e1a (patch)
tree7ef984555683aeeba5e8963ae9206786181d08f1 /src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
parentb7b4df9c87805be372fa6f74422e0f4648a5d520 (diff)
downloadQt-54db3afc9797a3adf5a38f35f6338960924e9e1a.zip
Qt-54db3afc9797a3adf5a38f35f6338960924e9e1a.tar.gz
Qt-54db3afc9797a3adf5a38f35f6338960924e9e1a.tar.bz2
Implemented pinch gesture recognizer.
Reviewed-by: trustme
Diffstat (limited to 'src/gui/kernel/qwinnativepangesturerecognizer_win.cpp')
-rw-r--r--src/gui/kernel/qwinnativepangesturerecognizer_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp b/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
index 12d3058..c3c8a28 100644
--- a/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
+++ b/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
@@ -56,16 +56,16 @@ QWinNativePanGestureRecognizer::QWinNativePanGestureRecognizer()
{
}
-QGesture* QWinNativePanGestureRecognizer::createGesture(QObject *target) const
+QGesture *QWinNativePanGestureRecognizer::createGesture(QObject *target)
{
if (!target)
return new QPanGesture; // a special case
- if (qobject_cast<QGraphicsObject*>(target))
- return 0;
if (!target->isWidgetType())
return 0;
+ if (qobject_cast<QGraphicsObject *>(target))
+ return 0;
- QWidget *q = static_cast<QWidget*>(target);
+ QWidget *q = static_cast<QWidget *>(target);
QWidgetPrivate *d = q->d_func();
d->nativeGesturePanEnabled = true;
d->winSetupGestures();