diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2011-03-28 16:52:50 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2011-03-28 16:52:50 (GMT) |
commit | 6c9d808c5726893e9aa673ca8b0cbebae67f641c (patch) | |
tree | 5267632711160626fdacfbec4dc32e4cf8521629 /src/gui/styles/qmacstyle_mac.mm | |
parent | 77cbbe9e47c62047ff88973d8158c42dc30fbd00 (diff) | |
download | Qt-6c9d808c5726893e9aa673ca8b0cbebae67f641c.zip Qt-6c9d808c5726893e9aa673ca8b0cbebae67f641c.tar.gz Qt-6c9d808c5726893e9aa673ca8b0cbebae67f641c.tar.bz2 |
Don't use inactive borders for spinbox on Mac
This was probably caused by the fact that the only spinbox
visible in the main control panel has an inactive frame border.
In XCode 4, however the spin buttons are generally attached
to an active lineedit frame, so we change the default for 4.8.
Reviewed-by: gabriel
Diffstat (limited to 'src/gui/styles/qmacstyle_mac.mm')
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 2d21628..18003ce 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -4707,7 +4707,7 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex HIThemeFrameDrawInfo fdi; fdi.version = qt_mac_hitheme_version; - fdi.state = kThemeStateInactive; + fdi.state = tds; fdi.kind = kHIThemeFrameTextFieldSquare; fdi.isFocused = false; HIRect hirect = qt_hirectForQRect(lineeditRect); |