#include <qcgaugewidget.h>
Public Types | |
enum | Error { InvalidValueRange, InvalidDegreeRange, InvalidStep } |
Public Member Functions | |
virtual void | draw (QPainter *)=0 |
float | position () |
QcItem (QObject *parent=0) | |
QRectF | rect () |
void | setPosition (float percentage) |
virtual int | type () |
Protected Member Functions | |
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 () |
Private Attributes | |
float | mPosition |
QRectF | mRect |
QWidget * | parentWidget |
Definition at line 98 of file qcgaugewidget.h.
enum QcItem::Error |
Definition at line 109 of file qcgaugewidget.h.
QcItem::QcItem | ( | QObject * | parent = 0 | ) | [explicit] |
Definition at line 149 of file qcgaugewidget.cpp.
QRectF QcItem::adjustRect | ( | float | percentage | ) | [protected] |
Definition at line 188 of file qcgaugewidget.cpp.
virtual void QcItem::draw | ( | QPainter * | ) | [pure virtual] |
Implemented in QcAttitudeMeter, QcValuesItem, QcNeedleItem, QcDegreesItem, QcColorBand, QcArcItem, QcLabelItem, QcGlassItem, and QcBackgroundItem.
float QcItem::getAngle | ( | const QPointF & | pt, |
const QRectF & | tmpRect | ||
) | [protected] |
Definition at line 231 of file qcgaugewidget.cpp.
QPointF QcItem::getPoint | ( | float | deg, |
const QRectF & | tmpRect | ||
) | [protected] |
Definition at line 216 of file qcgaugewidget.cpp.
float QcItem::getRadius | ( | const QRectF & | tmpRect | ) | [protected] |
Definition at line 196 of file qcgaugewidget.cpp.
float QcItem::position | ( | ) |
Definition at line 167 of file qcgaugewidget.cpp.
QRectF QcItem::rect | ( | ) |
Definition at line 172 of file qcgaugewidget.cpp.
QRectF QcItem::resetRect | ( | ) | [protected] |
Definition at line 206 of file qcgaugewidget.cpp.
void QcItem::setPosition | ( | float | percentage | ) |
Definition at line 177 of file qcgaugewidget.cpp.
int QcItem::type | ( | ) | [virtual] |
Definition at line 157 of file qcgaugewidget.cpp.
void QcItem::update | ( | ) | [protected] |
Definition at line 162 of file qcgaugewidget.cpp.
float QcItem::mPosition [private] |
Definition at line 123 of file qcgaugewidget.h.
QRectF QcItem::mRect [private] |
Definition at line 121 of file qcgaugewidget.h.
QWidget* QcItem::parentWidget [private] |
Definition at line 122 of file qcgaugewidget.h.