aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickcombobox.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-03-23 15:02:35 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-03-23 15:02:35 +0100
commit5178f6269418d731efe6bec7bc541f21fdd6d7f4 (patch)
treecd09fbc67c6e92652e92951cf9c91385ddce8564 /src/quicktemplates2/qquickcombobox.cpp
parent2b0e33692b949ebaed034c72d0ea3da9f0ef6de2 (diff)
parent81f656eeac522532ff98a32aac68a1571ea54c99 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Conflicts: src/quickcontrols2/qquickstyle.cpp tests/auto/controls/data/tst_popup.qml Change-Id: I7b7bb5f9c63b32eef65c9b2e68f56baa3da69cff
Diffstat (limited to 'src/quicktemplates2/qquickcombobox.cpp')
-rw-r--r--src/quicktemplates2/qquickcombobox.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp
index 3616bcc2..1238ec08 100644
--- a/src/quicktemplates2/qquickcombobox.cpp
+++ b/src/quicktemplates2/qquickcombobox.cpp
@@ -1639,12 +1639,10 @@ void QQuickComboBox::wheelEvent(QWheelEvent *event)
Q_D(QQuickComboBox);
QQuickControl::wheelEvent(event);
if (d->wheelEnabled && !d->isPopupVisible()) {
- const int oldIndex = d->currentIndex;
if (event->angleDelta().y() > 0)
d->decrementCurrentIndex();
else
d->incrementCurrentIndex();
- event->setAccepted(d->currentIndex != oldIndex);
}
}
#endif