KUnitConversion
#include <value.h>
List of all members.
Public Member Functions |
| | Value () |
| | Value (double n, UnitPtr u) |
| | Value (double n, const QString &u) |
| | Value (double n, int u) |
| | Value (const QVariant &n, const QString &u) |
| | ~Value () |
| Value | convertTo (UnitPtr unit) const |
| Value | convertTo (int unit) const |
| Value | convertTo (const QString &unit) const |
| bool | isValid () const |
| double | number () const |
| Value & | operator= (const Value &) |
| Value & | round (uint decimals) |
| QString | toString (int fieldWidth=0, char format= 'g', int precision=-1, const QChar &fillChar=QLatin1Char(' ')) const |
| QString | toSymbolString (int fieldWidth=0, char format= 'g', int precision=-1, const QChar &fillChar=QLatin1Char(' ')) const |
| UnitPtr | unit () const |
Detailed Description
Definition at line 32 of file value.h.
Constructor & Destructor Documentation
Member Function Documentation
convert to another unit
Definition at line 138 of file value.cpp.
convert to another unit
Definition at line 143 of file value.cpp.
convert to another unit
Definition at line 148 of file value.cpp.
Check if value is valid.
- Returns:
- True if value is valid
Definition at line 87 of file value.cpp.
Number part of the value.
Definition at line 118 of file value.cpp.
| Value & KUnitConversion::Value::operator= |
( |
const Value & |
value | ) |
|
rounds value to decimal count
- Parameters:
-
Definition at line 109 of file value.cpp.
Convert value to a string.
- Parameters:
-
| fieldWidth | width of the formatted field, padded by spaces. Positive value aligns right, negative aligns left |
| format | type of floating point formating, like in QString::arg |
| precision | number of digits after the decimal separator |
| fillChar | the character used to fill up the empty places when field width is greater than argument width |
- Returns:
- value as a string
Definition at line 92 of file value.cpp.
Convert value to a string with symbol.
- Parameters:
-
| fieldWidth | width of the formatted field, padded by spaces. Positive value aligns right, negative aligns left |
| format | type of floating point formating, like in QString::arg |
| precision | number of digits after the decimal separator |
| fillChar | the character used to fill up the empty places when field width is greater than argument width |
- Returns:
- value as a string
Definition at line 100 of file value.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:31:36 by
doxygen 1.8.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.