diff options
author | Timothy Pearson <[email protected]> | 2012-10-16 15:39:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-10-16 15:39:47 -0500 |
commit | f209ff4b488f2ea3fa39bbed57dbbb8fe0162a3b (patch) | |
tree | b046beab59eda48afdbdb4ee3e9ae60881114b87 /src/widgets/qtoolbutton.cpp | |
parent | 4f8eb0410d666d41ccbc39b2bf5dea336af5c26c (diff) | |
download | qt3-f209ff4b488f2ea3fa39bbed57dbbb8fe0162a3b.tar.gz qt3-f209ff4b488f2ea3fa39bbed57dbbb8fe0162a3b.zip |
Move hover widget code into the Qt core instead of the styles
This more closely matches other widget toolkits such as GTK
Diffstat (limited to 'src/widgets/qtoolbutton.cpp')
-rw-r--r-- | src/widgets/qtoolbutton.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp index f11b613..d121d61 100644 --- a/src/widgets/qtoolbutton.cpp +++ b/src/widgets/qtoolbutton.cpp @@ -484,6 +484,8 @@ void QToolButton::drawButton( QPainter * p ) flags |= QStyle::Style_Down; if (isOn()) flags |= QStyle::Style_On; + if (hasMouse()) + flags |= QStyle::Style_MouseOver; if (autoRaise()) { flags |= QStyle::Style_AutoRaise; if (uses3D()) { |