diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-31 12:55:29 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-31 12:47:16 +0000 |
commit | db55ad70edccf9041918a99f982a55db7136d5ab (patch) | |
tree | 574dcabb3e9b2c98b65b50f72dcf3c8d439c35b5 /src/quicktemplates2/qquickspinbox.cpp | |
parent | 67b1d4a3c072c73a42247fa426e340d26b8eb47c (diff) |
Fix build with -no-feature-wheelevent
Change-Id: I6f40794ae1977d1f23916bff6d0c58d44440fbe5
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickspinbox.cpp')
-rw-r--r-- | src/quicktemplates2/qquickspinbox.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp index e74c0497..4368236a 100644 --- a/src/quicktemplates2/qquickspinbox.cpp +++ b/src/quicktemplates2/qquickspinbox.cpp @@ -870,6 +870,7 @@ void QQuickSpinBox::touchUngrabEvent() d->handleUngrab(); } +#if QT_CONFIG(wheelevent) void QQuickSpinBox::wheelEvent(QWheelEvent *event) { Q_D(QQuickSpinBox); @@ -884,6 +885,7 @@ void QQuickSpinBox::wheelEvent(QWheelEvent *event) event->setAccepted(d->value != oldValue); } } +#endif void QQuickSpinBox::componentComplete() { |