trikRuntime
trikGui::AbstractIndicator Class Referenceabstract

Base class for a widget that can show some reading from sensor, encoder and so on. More...

#include <abstractIndicator.h>

Inheritance diagram for trikGui::AbstractIndicator:
Collaboration diagram for trikGui::AbstractIndicator:

Public Slots

virtual void renew ()=0
 Rereads sensor and updates widget contents. More...
 

Public Member Functions

 AbstractIndicator (QWidget *parent=0)
 Constructor. More...
 

Static Public Member Functions

static int fontMetricsHorizontalAdvance (const QWidget *w, const QString &text)
 For compatibility with old Qt (until we use 5.10.1 for TRIK firmware) More...
 

Detailed Description

Base class for a widget that can show some reading from sensor, encoder and so on.

Constructor & Destructor Documentation

trikGui::AbstractIndicator::AbstractIndicator ( QWidget *  parent = 0)
inlineexplicit

Constructor.

Parameters
parent- parent of this widget in Qt widget parent-child system.

Member Function Documentation

static int trikGui::AbstractIndicator::fontMetricsHorizontalAdvance ( const QWidget *  w,
const QString &  text 
)
inlinestatic

For compatibility with old Qt (until we use 5.10.1 for TRIK firmware)

virtual void trikGui::AbstractIndicator::renew ( )
pure virtualslot

Rereads sensor and updates widget contents.


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