diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-02-25 13:52:39 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-02-25 13:52:39 (GMT) |
commit | f82f128451ef78e968c85944af10e0e54dbb73c5 (patch) | |
tree | 27d4b60d3b8ebb7c4fe4990ac44ee083d368dedd | |
parent | 72928bb61d5aceac1d15ee11736941c16b83df59 (diff) | |
download | Qt-f82f128451ef78e968c85944af10e0e54dbb73c5.zip Qt-f82f128451ef78e968c85944af10e0e54dbb73c5.tar.gz Qt-f82f128451ef78e968c85944af10e0e54dbb73c5.tar.bz2 |
Merge request: 1111
Rev-By: jbache
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index ac05789..64722c7 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -4621,6 +4621,13 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex tdi.attributes &= ~kThemeTrackShowThumb; if (scrollBarLength < scrollButtonsCutoffSize(scrollButtonsCutoff, sizePolicy)) tdi.enableState = kThemeTrackNothingToScroll; + } else { + if (!(slider->subControls & SC_SliderHandle)) + tdi.attributes &= ~kThemeTrackShowThumb; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 + if (!(slider->subControls & SC_SliderGroove)) + tdi.attributes |= kThemeTrackHideTrack; +#endif } HIThemeDrawTrack(&tdi, tracking ? 0 : &macRect, cg, |