Public Types | Public Member Functions | Protected Member Functions | Private Attributes
QcItem Class Reference

#include <qcgaugewidget.h>

Inheritance diagram for QcItem:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 98 of file qcgaugewidget.h.


Member Enumeration Documentation

Enumerator:
InvalidValueRange 
InvalidDegreeRange 
InvalidStep 

Definition at line 109 of file qcgaugewidget.h.


Constructor & Destructor Documentation

QcItem::QcItem ( QObject *  parent = 0) [explicit]

Definition at line 148 of file qcgaugewidget.cpp.


Member Function Documentation

QRectF QcItem::adjustRect ( float  percentage) [protected]

Definition at line 187 of file qcgaugewidget.cpp.

virtual void QcItem::draw ( QPainter *  ) [pure virtual]
float QcItem::getAngle ( const QPointF &  pt,
const QRectF &  tmpRect 
) [protected]

Definition at line 230 of file qcgaugewidget.cpp.

QPointF QcItem::getPoint ( float  deg,
const QRectF &  tmpRect 
) [protected]

Definition at line 215 of file qcgaugewidget.cpp.

float QcItem::getRadius ( const QRectF &  tmpRect) [protected]

Definition at line 195 of file qcgaugewidget.cpp.

float QcItem::position ( )

Definition at line 166 of file qcgaugewidget.cpp.

QRectF QcItem::rect ( )

Definition at line 171 of file qcgaugewidget.cpp.

QRectF QcItem::resetRect ( ) [protected]

Definition at line 205 of file qcgaugewidget.cpp.

void QcItem::setPosition ( float  percentage)

Definition at line 176 of file qcgaugewidget.cpp.

int QcItem::type ( ) [virtual]

Definition at line 156 of file qcgaugewidget.cpp.

void QcItem::update ( ) [protected]

Definition at line 161 of file qcgaugewidget.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


gauges
Author(s):
autogenerated on Thu Dec 8 2016 03:30:53