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/qwindowsxpstyle.cpp | |
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/qwindowsxpstyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp index 9d735a7..55f99a3 100644 --- a/src/gui/styles/qwindowsxpstyle.cpp +++ b/src/gui/styles/qwindowsxpstyle.cpp @@ -46,6 +46,7 @@ #include <private/qobject_p.h> #include <private/qpaintengine_raster_p.h> #include <private/qapplication_p.h> +#include <private/qstylehelper_p.h> #include <qlibrary.h> #include <qpainter.h> #include <qpaintengine.h> @@ -3164,6 +3165,12 @@ void QWindowsXPStyle::drawComplexControl(ComplexControl cc, const QStyleOptionCo } break; #endif //QT_NO_WORKSPACE +#ifndef QT_NO_DIAL + case CC_Dial: + if (const QStyleOptionSlider *dial = qstyleoption_cast<const QStyleOptionSlider *>(option)) + QStyleHelper::drawDial(dial, painter); + break; +#endif // QT_NO_DIAL default: QWindowsStyle::drawComplexControl(cc, option, p, widget); break; |