diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-06 12:11:29 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 13:41:39 (GMT) |
commit | b231b0bcd36d531d3558cee12be263a98391b9db (patch) | |
tree | 9b40dcef7fd316337a84fa6902dfa6254dc41e3a | |
parent | f1d955249ff00db79252967078005db9a9fe936c (diff) | |
download | Qt-b231b0bcd36d531d3558cee12be263a98391b9db.zip Qt-b231b0bcd36d531d3558cee12be263a98391b9db.tar.gz Qt-b231b0bcd36d531d3558cee12be263a98391b9db.tar.bz2 |
Fixes: Compilation fixes
-rw-r--r-- | examples/gestures/imageviewer/imagewidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qgesturemanager_p.h | 1 |
2 files changed, 3 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; diff --git a/src/gui/kernel/qgesturemanager_p.h b/src/gui/kernel/qgesturemanager_p.h index 9853f1a..1079cc4 100644 --- a/src/gui/kernel/qgesturemanager_p.h +++ b/src/gui/kernel/qgesturemanager_p.h @@ -53,6 +53,7 @@ // We mean it. // +#include "qwidget.h" #include "qlist.h" #include "qset.h" #include "qevent.h" |