QtPdWidgets  2.3.1
Public Member Functions | Public Attributes | List of all members
Pd::Digital::Impl Struct Reference
Inheritance diagram for Pd::Digital::Impl:
Inheritance graph
[legend]
Collaboration diagram for Pd::Digital::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (Digital *)
 
void drawText (QPaintEvent *, QPainter &)
 Draws the text. More...
 
void outputValue ()
 Displays the current value. More...
 
void retranslate ()
 Retranslate the widget. More...
 
- Public Member Functions inherited from Pd::Widget
 Widget ()
 Constructor. More...
 
virtual ~Widget ()
 Destructor. More...
 

Public Attributes

Digital *const digital
 
bool dataPresent
 True, if data were received. More...
 
double value
 Current value. More...
 
bool redraw
 Value shall be redrawn on next redraw event. More...
 
Qt::Alignment alignment
 Text alignment. More...
 
quint32 decimals
 Number of decimal digits. More...
 
QString suffix
 Suffix, that is appended to the displayed string. More...
 
TimeDisplay timeDisplay
 Time display. More...
 
int base
 Number base (10 = decimal). More...
 
QString displayText
 Displayed text. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Pd::Widget
static void setRedrawInterval (int)
 Sets the redraw interval. More...
 
static const QTimer * getTimer ()
 Returns the redrawTimer. More...
 

Constructor & Destructor Documentation

◆ Impl()

Pd::Digital::Impl::Impl ( Digital digital)

Member Function Documentation

◆ drawText()

void Pd::Digital::Impl::drawText ( QPaintEvent *  event,
QPainter &  painter 
)

Draws the text.

Parameters
eventPaint event flags.
painterPainter.

◆ outputValue()

void Pd::Digital::Impl::outputValue ( )

Displays the current value.

References SECONDS_PER_HOUR, and SECONDS_PER_MINUTE.

◆ retranslate()

void Pd::Digital::Impl::retranslate ( )

Retranslate the widget.

Member Data Documentation

◆ alignment

Qt::Alignment Pd::Digital::Impl::alignment

Text alignment.

◆ base

int Pd::Digital::Impl::base

Number base (10 = decimal).

◆ dataPresent

bool Pd::Digital::Impl::dataPresent

True, if data were received.

◆ decimals

quint32 Pd::Digital::Impl::decimals

Number of decimal digits.

◆ digital

Digital* const Pd::Digital::Impl::digital

◆ displayText

QString Pd::Digital::Impl::displayText

Displayed text.

◆ redraw

bool Pd::Digital::Impl::redraw

Value shall be redrawn on next redraw event.

◆ suffix

QString Pd::Digital::Impl::suffix

Suffix, that is appended to the displayed string.

The suffix is appended without a separator (like in other Qt classes), so if you want to specify a unit, you'll have to set suffix to " kN", for example.

◆ timeDisplay

TimeDisplay Pd::Digital::Impl::timeDisplay

Time display.

◆ value

double Pd::Digital::Impl::value

Current value.


The documentation for this struct was generated from the following file: