#include <KoUnitWidgets.h>
Base for the unit widgets.
- Since
- 1.4 (change of behavior)
Definition at line 60 of file KoUnitWidgets.h.
◆ KoUnitDoubleBase()
| KoUnitDoubleBase::KoUnitDoubleBase |
( |
KoUnit::Unit | unit, |
|
|
unsigned int | precision ) |
|
inline |
◆ ~KoUnitDoubleBase()
| virtual KoUnitDoubleBase::~KoUnitDoubleBase |
( |
| ) |
|
|
inlinevirtual |
◆ getVisibleText()
| TQString KoUnitDoubleBase::getVisibleText |
( |
double | value | ) |
const |
|
protected |
Transform the double in a nice text, using locale symbols.
- Parameters
-
| value | the number as double |
- Returns
- the resulting string
Definition at line 91 of file KoUnitWidgets.cpp.
◆ setPrecision()
| void KoUnitDoubleBase::setPrecision |
( |
unsigned int | precision | ) |
|
|
inline |
◆ setValueInUnit()
| void KoUnitDoubleBase::setValueInUnit |
( |
double | value, |
|
|
KoUnit::Unit | unit ) |
|
inline |
◆ toDouble()
| double KoUnitDoubleBase::toDouble |
( |
const TQString & | str, |
|
|
bool * | ok ) const |
|
protected |
Transfrom a string into a double, while taking care of locale specific symbols.
- Parameters
-
| str | the string to transform into a number |
| ok | true, if the conversion was succesful |
- Returns
- the value as double
Definition at line 98 of file KoUnitWidgets.cpp.
◆ KoUnitDoubleValidator
◆ m_precision
| unsigned int KoUnitDoubleBase::m_precision |
|
protected |
◆ m_unit
◆ m_validator
The documentation for this class was generated from the following files: