diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-16 15:39:47 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-16 15:39:47 -0500 |
commit | f209ff4b488f2ea3fa39bbed57dbbb8fe0162a3b (patch) | |
tree | b046beab59eda48afdbdb4ee3e9ae60881114b87 /src/styles/qcommonstyle.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/styles/qcommonstyle.cpp')
-rw-r--r-- | src/styles/qcommonstyle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp index 3e61282..8293285 100644 --- a/src/styles/qcommonstyle.cpp +++ b/src/styles/qcommonstyle.cpp @@ -226,6 +226,7 @@ QStyle::ControlElementFlags getControlElementFlagsForObject(const QObject* objec if (widget->parentWidget()) cef = cef | QStyle::CEF_HasParentWidget; if (widget->focusProxy()) cef = cef | QStyle::CEF_HasFocusProxy; if (widget->hasFocus()) cef = cef | QStyle::CEF_HasFocus; + if (widget->hasMouse()) cef = cef | QStyle::CEF_HasMouse; if (populateReliantFields) { if (widget->isActiveWindow()) cef = cef | QStyle::CEF_IsActiveWindow; if (widget->isTopLevel()) cef = cef | QStyle::CEF_IsTopLevel; |