From f209ff4b488f2ea3fa39bbed57dbbb8fe0162a3b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 16 Oct 2012 15:39:47 -0500 Subject: Move hover widget code into the Qt core instead of the styles This more closely matches other widget toolkits such as GTK --- src/widgets/qcombobox.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/qcombobox.cpp') diff --git a/src/widgets/qcombobox.cpp b/src/widgets/qcombobox.cpp index 1da559c..2e5d56d 100644 --- a/src/widgets/qcombobox.cpp +++ b/src/widgets/qcombobox.cpp @@ -1244,6 +1244,8 @@ void QComboBox::paintEvent( QPaintEvent * ) flags |= QStyle::Style_Enabled; if (hasFocus()) flags |= QStyle::Style_HasFocus; + if (hasMouse()) + flags |= QStyle::Style_MouseOver; if ( width() < 5 || height() < 5 ) { qDrawShadePanel( &p, rect(), g, FALSE, 2, -- cgit v1.2.1