Public Member Functions | Private Attributes | List of all members
QcBackgroundItem Class Reference

#include <qcgaugewidget.h>

Inheritance diagram for QcBackgroundItem:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Definition at line 159 of file qcgaugewidget.h.

Constructor & Destructor Documentation

QcBackgroundItem::QcBackgroundItem ( QObject *  parent = 0)
explicit

Definition at line 311 of file qcgaugewidget.cpp.

Member Function Documentation

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.

void QcBackgroundItem::draw ( QPainter *  painter)
virtual

Implements QcItem.

Definition at line 324 of file qcgaugewidget.cpp.

Member Data Documentation

QList<QPair<float,QColor> > QcBackgroundItem::mColors
private

Definition at line 171 of file qcgaugewidget.h.

QLinearGradient QcBackgroundItem::mLinearGrad
private

Definition at line 172 of file qcgaugewidget.h.

QPen QcBackgroundItem::mPen
private

Definition at line 170 of file qcgaugewidget.h.


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


gauges
Author(s):
autogenerated on Sat Apr 11 2020 03:54:59