#include <qcgaugewidget.h>
Public Member Functions | |
void | addColor (float position, const QColor &color) |
void | clearrColors () |
void | draw (QPainter *) |
QcBackgroundItem (QObject *parent=0) | |
Public Member Functions inherited from QcItem | |
float | position () |
QcItem (QObject *parent=0) | |
QRectF | rect () |
void | setPosition (float percentage) |
virtual int | type () |
Private Attributes | |
QList< QPair< float, QColor > > | mColors |
QLinearGradient | mLinearGrad |
QPen | mPen |
Additional Inherited Members | |
Public Types inherited from QcItem | |
enum | Error { InvalidValueRange, InvalidDegreeRange, InvalidStep } |
Protected Member Functions inherited from QcItem | |
QRectF | adjustRect (float percentage) |
float | getAngle (const QPointF &, const QRectF &tmpRect) |
QPointF | getPoint (float deg, const QRectF &tmpRect) |
float | getRadius (const QRectF &) |
QRectF | resetRect () |
void | update () |
Definition at line 159 of file qcgaugewidget.h.
|
explicit |
Definition at line 311 of file qcgaugewidget.cpp.
void QcBackgroundItem::addColor | ( | float | position, |
const QColor & | color | ||
) |
Definition at line 337 of file qcgaugewidget.cpp.
void QcBackgroundItem::clearrColors | ( | ) |
Definition at line 348 of file qcgaugewidget.cpp.
|
virtual |
Implements QcItem.
Definition at line 324 of file qcgaugewidget.cpp.
|
private |
Definition at line 171 of file qcgaugewidget.h.
|
private |
Definition at line 172 of file qcgaugewidget.h.
|
private |
Definition at line 170 of file qcgaugewidget.h.