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/qpushbutton.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/qpushbutton.cpp') diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp index e3db3f7..36e0ace 100644 --- a/src/widgets/qpushbutton.cpp +++ b/src/widgets/qpushbutton.cpp @@ -555,6 +555,8 @@ void QPushButton::drawButton( QPainter *paint ) flags |= QStyle::Style_Raised; if (isDefault()) flags |= QStyle::Style_ButtonDefault; + if (hasMouse()) + flags |= QStyle::Style_MouseOver; style().drawControl(QStyle::CE_PushButton, paint, this, rect(), colorGroup(), flags); drawButtonLabel( paint ); -- cgit v1.2.3