diff options
author | Andy Shaw <andy.shaw@digia.com> | 2013-12-04 20:53:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-05 16:40:06 +0100 |
commit | 47efa9213d92a4366e03bd6d056837cd5bbadb1e (patch) | |
tree | bd75a9e2a88903867ee0f6a56c306c837a50c461 /src/gui/kernel/qevent.cpp | |
parent | d270bd8673505d8325ce25fa8476c8f8bc5a075b (diff) | |
download | qtbase-47efa9213d92a4366e03bd6d056837cd5bbadb1e.tar.gz |
Protect implementation of QNativeGestureEvent against QT_NO_GESTURES
The definition and usage of QNativeGestureEvent had already been
protected against QT_NO_GESTURES but the implementation had been missed
out before.
Change-Id: Ie039e08257ad5eb7705342e4248b904f6ceca8df
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 88f132b877..131f1863a5 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -2278,6 +2278,7 @@ QTabletEvent::~QTabletEvent() #endif // QT_NO_TABLETEVENT +#ifndef QT_NO_GESTURES /*! \class QNativeGestureEvent \since 5.2 @@ -2392,6 +2393,7 @@ QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPoin Returns the position of the gesture as a QPointF, relative to the window that received the event. */ +#endif // QT_NO_GESTURES #ifndef QT_NO_DRAGANDDROP /*! |