diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-06 13:11:29 +0100 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 15:41:39 +0200 |
commit | b231b0bcd36d531d3558cee12be263a98391b9db (patch) | |
tree | 9b40dcef7fd316337a84fa6902dfa6254dc41e3a | |
parent | f1d955249ff00db79252967078005db9a9fe936c (diff) | |
download | qt4-tools-b231b0bcd36d531d3558cee12be263a98391b9db.tar.gz |
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 8932e297d0..0db62bbaaa 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 9853f1afb1..1079cc4f3a 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" |