27#ifndef QWT_DIAL_NEEDLE_H
28#define QWT_DIAL_NEEDLE_H
30#include "qwt_global.h"
50 virtual void setPalette(
const QPalette& );
51 const QPalette& palette()
const;
53 virtual void draw( QPainter*,
const QPointF& center,
54 double length,
double direction,
55 QPalette::ColorGroup = QPalette::Active )
const;
74 double length, QPalette::ColorGroup colorGroup )
const = 0;
76 virtual void drawKnob( QPainter*,
double width,
77 const QBrush&,
bool sunken )
const;
112 const QColor& mid = Qt::gray,
const QColor& base = Qt::darkGray );
114 void setWidth(
double width );
115 double width()
const;
118 virtual void drawNeedle( QPainter*,
double length,
119 QPalette::ColorGroup )
const QWT_OVERRIDE;
158 const QColor& light = Qt::white,
const QColor& dark = Qt::red );
161 virtual void drawNeedle( QPainter*,
162 double length, QPalette::ColorGroup )
const QWT_OVERRIDE;
195 const QColor& dark = Qt::gray );
198 virtual void drawNeedle( QPainter*,
199 double length, QPalette::ColorGroup )
const QWT_OVERRIDE;
A magnet needle for compass widgets.
Definition qwt_dial_needle.h:145
Style
Style of the needle.
Definition qwt_dial_needle.h:149
@ TriangleStyle
A needle with a triangular shape.
Definition qwt_dial_needle.h:151
An indicator for the wind direction.
Definition qwt_dial_needle.h:182
Style
Style of the arrow.
Definition qwt_dial_needle.h:186
@ Style1
A needle pointing to the center.
Definition qwt_dial_needle.h:188
Base class for needles that can be used in a QwtDial.
Definition qwt_dial_needle.h:45
virtual void drawNeedle(QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0
Draw the needle.
A needle for dial widgets.
Definition qwt_dial_needle.h:99
Style
Style of the needle.
Definition qwt_dial_needle.h:103
@ Arrow
Arrow.
Definition qwt_dial_needle.h:105