summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qmacstyle_mac.mm
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-03-28 16:52:50 (GMT)
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-03-28 16:52:50 (GMT)
commit6c9d808c5726893e9aa673ca8b0cbebae67f641c (patch)
tree5267632711160626fdacfbec4dc32e4cf8521629 /src/gui/styles/qmacstyle_mac.mm
parent77cbbe9e47c62047ff88973d8158c42dc30fbd00 (diff)
downloadQt-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.mm2
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);