KoUnitDoubleBase Class Reference
Base for the unit widgets. More...
#include <koUnitWidgets.h>
Inheritance diagram for KoUnitDoubleBase:


Public Member Functions | |
KoUnitDoubleBase (KoUnit::Unit unit, unsigned int precision) | |
virtual void | changeValue (double)=0 |
virtual void | setUnit (KoUnit::Unit=KoUnit::U_PT)=0 |
void | setValueInUnit (double value, KoUnit::Unit unit) |
void | setPrecision (unsigned int precision) |
Protected Member Functions | |
QString | getVisibleText (double value) const |
double | toDouble (const QString &str, bool *ok) const |
Protected Attributes | |
KoUnitDoubleValidator * | m_validator |
KoUnit::Unit | m_unit |
unsigned int | m_precision |
Friends | |
class | KoUnitDoubleValidator |
Detailed Description
Base for the unit widgets.
- Since:
- 1.4 (change of behavior)
Definition at line 60 of file koUnitWidgets.h.
Member Function Documentation
|
Transform the double in a nice text, using locale symbols.
Definition at line 90 of file koUnitWidgets.cc. References KoUnit::unitName(). |
|
Transfrom a string into a double, while taking care of locale specific symbols.
Definition at line 97 of file koUnitWidgets.cc. References KoUnit::unitName(). |
The documentation for this class was generated from the following files: