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/qstylehelper_p.h | |
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/qstylehelper_p.h')
-rw-r--r-- | src/gui/styles/qstylehelper_p.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gui/styles/qstylehelper_p.h b/src/gui/styles/qstylehelper_p.h new file mode 100644 index 0000000..d9b2e28 --- /dev/null +++ b/src/gui/styles/qstylehelper_p.h @@ -0,0 +1,39 @@ +#include <QtCore/qglobal.h> +#include <QtCore/qpoint.h> +#include <QtGui/qpolygon.h> + +#ifndef QSTYLEHELPER_P_H +#define QSTYLEHELPER_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +QT_BEGIN_NAMESPACE + +class QPainter; +class QStyleOptionSlider; +class QStyleOption; + +namespace QStyleHelper +{ + extern const bool UsePixmapCache; + QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size); +#ifndef QT_NO_DIAL + qreal angle(const QPointF &p1, const QPointF &p2); + QPolygonF calcLines(const QStyleOptionSlider *dial); + int calcBigLineSize(int radius); + void drawDial(const QStyleOptionSlider *dial, QPainter *painter); +#endif //QT_NO_DIAL +} + +QT_END_NAMESPACE + +#endif // QSTYLEHELPER_P_H |