|
SHAPER
9.15.0
|
Implementation of model widget for a label control. More...

Public Member Functions | |
| ModuleBase_LabelValue (QWidget *theParent, const QString &theText, const QString &theToolTip="", const QString &theIcon="", int thePrecision=-12) | |
| Constructor. More... | |
| void | setValue (const double theValue) |
| Fills the label value with the given value. More... | |
| double | value () const |
| Returns double value. More... | |
Protected Attributes | |
| QLabel * | myLabel |
| A label information control. More... | |
| QLabel * | myLabelValue |
| A label value control. More... | |
| double | myValue |
| A cashed value to avoid a string conversion. More... | |
| int | myPrecision |
| Precision value. More... | |
Implementation of model widget for a label control.
| ModuleBase_LabelValue::ModuleBase_LabelValue | ( | QWidget * | theParent, |
| const QString & | theText, | ||
| const QString & | theToolTip = "", |
||
| const QString & | theIcon = "", |
||
| int | thePrecision = -12 |
||
| ) |
Constructor.
| theParent | the parent object |
| theText | a text value |
| theToolTip | a tool tip value |
| theIcon | a icon value |
| void ModuleBase_LabelValue::setValue | ( | const double | theValue | ) |
Fills the label value with the given value.
| theValue | a value |
|
inline |
Returns double value.
|
protected |
A label information control.
|
protected |
A label value control.
|
protected |
A cashed value to avoid a string conversion.
|
protected |
Precision value.