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

#include <qcgaugewidget.h>

Inheritance diagram for QcLabelItem:
Inheritance graph
[legend]

Public Member Functions

float angle ()
 
QColor color ()
 
virtual void draw (QPainter *)
 
 QcLabelItem (QObject *parent=0)
 
void setAngle (float)
 
void setColor (const QColor &color)
 
void setText (const QString &text, bool repaint=true)
 
QString text ()
 
- Public Member Functions inherited from QcItem
float position ()
 
 QcItem (QObject *parent=0)
 
QRectF rect ()
 
void setPosition (float percentage)
 
virtual int type ()
 

Private Attributes

float mAngle
 
QColor mColor
 
QString mText
 

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 192 of file qcgaugewidget.h.

Constructor & Destructor Documentation

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

Definition at line 391 of file qcgaugewidget.cpp.

Member Function Documentation

float QcLabelItem::angle ( )

Definition at line 425 of file qcgaugewidget.cpp.

QColor QcLabelItem::color ( )

Definition at line 448 of file qcgaugewidget.cpp.

void QcLabelItem::draw ( QPainter *  painter)
virtual

Implements QcItem.

Definition at line 400 of file qcgaugewidget.cpp.

void QcLabelItem::setAngle ( float  a)

Definition at line 419 of file qcgaugewidget.cpp.

void QcLabelItem::setColor ( const QColor &  color)

Definition at line 442 of file qcgaugewidget.cpp.

void QcLabelItem::setText ( const QString &  text,
bool  repaint = true 
)

Definition at line 430 of file qcgaugewidget.cpp.

QString QcLabelItem::text ( )

Definition at line 437 of file qcgaugewidget.cpp.

Member Data Documentation

float QcLabelItem::mAngle
private

Definition at line 206 of file qcgaugewidget.h.

QColor QcLabelItem::mColor
private

Definition at line 208 of file qcgaugewidget.h.

QString QcLabelItem::mText
private

Definition at line 207 of file qcgaugewidget.h.


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


gauges
Author(s): alexvs
autogenerated on Mon Nov 14 2016 03:55:02