From a5a082406e8a8a14e9d21921e918e36a270939fd Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Wed, 20 Dec 2023 15:14:17 +0100 Subject: [PATCH] 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 --- src/widgets/widgets/qcombobox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index d62c7628d08..698b6341a9f 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;