A special scale draw made for QwtDial. More...
#include <qwt_dial.h>
Public Member Functions | |
QwtDialScaleDraw (QwtDial *) | |
virtual QwtText | label (double value) const |
void | setPenWidth (uint) |
uint | penWidth () const |
A special scale draw made for QwtDial.
Definition at line 29 of file qwt_dial.h.
QwtDialScaleDraw::QwtDialScaleDraw | ( | QwtDial * | parent ) | [explicit] |
Constructor
parent | Parent dial widget |
Definition at line 79 of file qwt_dial.cpp.
: d_parent(parent), d_penWidth(1) { }
QwtText QwtDialScaleDraw::label | ( | double | value ) | const [virtual] |
Call QwtDial::scaleLabel of the parent dial widget.
value | Value to display |
Reimplemented from QwtAbstractScaleDraw.
Definition at line 113 of file qwt_dial.cpp.
References QwtDial::scaleLabel().
{ if ( d_parent == NULL ) return QwtRoundScaleDraw::label(value); return d_parent->scaleLabel(value); }
uint QwtDialScaleDraw::penWidth | ( | ) | const |
Definition at line 101 of file qwt_dial.cpp.
Referenced by QwtDial::drawScale(), and setPenWidth().
{
return d_penWidth;
}
void QwtDialScaleDraw::setPenWidth | ( | uint | penWidth ) |
Set the pen width used for painting the scale
penWidth | Pen width |
Definition at line 92 of file qwt_dial.cpp.
References penWidth().
Referenced by QwtDial::setScaleTicks().
{ d_penWidth = penWidth; }