summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-12-20 15:14:17 +0100
committerAxel Spoerl <axel.spoerl@qt.io>2023-12-21 01:04:12 +0000
commita5a082406e8a8a14e9d21921e918e36a270939fd (patch)
treec98bb20976259a317593a9993ad630a8d8cb706d /src/widgets/widgets
parent8fe920ccb03a9264f936cfbc9c6d61687f6bb4d6 (diff)
QComboBox: Fix hover over list view
9da8d67b3bca1d40ae221a9c6be218fe57759724 has commented out setting the current index of the combo box container during a mouse hover event. That has caused a regression. Amend the patch and enable visual hover effect. Fixes: QTBUG-120167 Pick-to: 6.7 Change-Id: Ic12e70f9f70ac2f7b9604580562c35551659c5e2 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r--src/widgets/widgets/qcombobox.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp
index d62c7628d0..698b6341a9 100644
--- a/src/widgets/widgets/qcombobox.cpp
+++ b/src/widgets/widgets/qcombobox.cpp
@@ -761,9 +761,7 @@ bool QComboBoxPrivateContainer::eventFilter(QObject *o, QEvent *e)
QModelIndex indexUnderMouse = view->indexAt(m->position().toPoint());
if (indexUnderMouse.isValid()
&& !QComboBoxDelegate::isSeparator(indexUnderMouse)) {
- // Request for comments: To show selected item with AccentColor bar indicator and hovered
- // items in the flyout, the next line needs to be removed.
- //view->setCurrentIndex(indexUnderMouse);
+ view->setCurrentIndex(indexUnderMouse);
}
}
break;