diff options
Diffstat (limited to 'src/widgets/qpushbutton.cpp')
-rw-r--r-- | src/widgets/qpushbutton.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |