summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-06 12:11:29 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 13:41:39 (GMT)
commitb231b0bcd36d531d3558cee12be263a98391b9db (patch)
tree9b40dcef7fd316337a84fa6902dfa6254dc41e3a /examples
parentf1d955249ff00db79252967078005db9a9fe936c (diff)
downloadQt-b231b0bcd36d531d3558cee12be263a98391b9db.zip
Qt-b231b0bcd36d531d3558cee12be263a98391b9db.tar.gz
Qt-b231b0bcd36d531d3558cee12be263a98391b9db.tar.bz2
Fixes: Compilation fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/gestures/imageviewer/imagewidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gestures/imageviewer/imagewidget.cpp b/examples/gestures/imageviewer/imagewidget.cpp
index 8932e29..0db62bb 100644
--- a/examples/gestures/imageviewer/imagewidget.cpp
+++ b/examples/gestures/imageviewer/imagewidget.cpp
@@ -148,10 +148,12 @@ void ImageWidget::gestureEvent(QGestureEvent *event)
} else if (const QGesture *g = event->gesture(Qt::Pan)) {
if (zoomedIn) {
// usual panning
+#ifndef QT_NO_CURSOR
if (g->state() == Qt::GestureStarted)
setCursor(Qt::SizeAllCursor);
else
setCursor(Qt::ArrowCursor);
+#endif
const int dx = g->pos().x() - g->lastPos().x();
const int dy = g->pos().y() - g->lastPos().y();
horizontalOffset += dx;