diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-03-27 14:29:54 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-03-27 14:38:11 (GMT) |
commit | 9a33a0027883ab77c10d8a9d9d9df5b4c2c5d50b (patch) | |
tree | 1e773d31636c6a06308d3e6fbf0a54cf05a549f1 /src/gui/styles/qmacstyle_mac.mm | |
parent | f9796f295e3fa42e4855f386b5663b1c2b957d10 (diff) | |
download | Qt-9a33a0027883ab77c10d8a9d9d9df5b4c2c5d50b.zip Qt-9a33a0027883ab77c10d8a9d9d9df5b4c2c5d50b.tar.gz Qt-9a33a0027883ab77c10d8a9d9d9df5b4c2c5d50b.tar.bz2 |
Style QDial to look better
This widget has been needing an update in appearance for
years as it is still featured in our style gallery.
This introduces a new and better looking nob control to
cleanlooks, gtk, mac, windows xp, vista and cleanlooks.
Reviewed-by: nrc
Task-number: 159934
Diffstat (limited to 'src/gui/styles/qmacstyle_mac.mm')
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 226b4d0..9acf42c 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -50,6 +50,7 @@ #include <private/qpaintengine_mac_p.h> #include <private/qpainter_p.h> #include <private/qprintengine_mac_p.h> +#include <private/qstylehelper_p.h> #include <qapplication.h> #include <qbitmap.h> #include <qcheckbox.h> @@ -5378,6 +5379,10 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex } } break; + case CC_Dial: + if (const QStyleOptionSlider *dial = qstyleoption_cast<const QStyleOptionSlider *>(opt)) + QStyleHelper::drawDial(dial, p); + break; default: QWindowsStyle::drawComplexControl(cc, opt, p, widget); break; |