summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2014-11-27 00:55:40 +0100
committerSamuel Gaist <samuel.gaist@edeltech.ch>2014-11-27 09:18:47 +0100
commitcc23ebace8b7f343aca6e10f9ebd31b87c17c782 (patch)
tree9d3f10465849edba261e8f73246078668c7105fe /src/widgets
parent8f201ca4e70a51d1d41f23375414baa4e37e4816 (diff)
Fix build of QGestureRecognizer on OS X
ifdef panTouchPoints which is not used on OS X. Otherwise the build fails when the -Werror,-Wunused-function flags are used. Change-Id: I4f5498774905fcb2ba1fae40e41587d5821af8b9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qgesturemanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qgesturemanager.cpp b/src/widgets/kernel/qgesturemanager.cpp
index c9af3062d3..f0aceaacf7 100644
--- a/src/widgets/kernel/qgesturemanager.cpp
+++ b/src/widgets/kernel/qgesturemanager.cpp
@@ -63,6 +63,7 @@
QT_BEGIN_NAMESPACE
+#if !defined(Q_OS_OSX)
static inline int panTouchPoints()
{
// Override by environment variable for testing.
@@ -80,6 +81,7 @@ static inline int panTouchPoints()
// correctly.
return 2;
}
+#endif
QGestureManager::QGestureManager(QObject *parent)
: QObject(parent), state(NotGesture), m_lastCustomGestureId(Qt::CustomGesture)