KUnitConversion
Go to the documentation of this file.
20 #ifndef KUNITCONVERSION_VALUE_H
21 #define KUNITCONVERSION_VALUE_H
23 #include <QtCore/QString>
29 namespace KUnitConversion
32 class KUNITCONVERSION_EXPORT
Value
37 Value(
double n,
const QString& u);
38 Value(
double n,
int u);
39 Value(
const QVariant& n,
const QString& u);
59 QString toString(
int fieldWidth = 0,
char format =
'g',
int precision = -1,
60 const QChar& fillChar = QLatin1Char(
' '))
const;
72 QString toSymbolString(
int fieldWidth = 0,
char format =
'g',
int precision = -1,
73 const QChar& fillChar = QLatin1Char(
' '))
const;
78 double number()
const;
84 Value& round(uint decimals);
99 Value convertTo(
int unit)
const;
104 Value convertTo(
const QString& unit)
const;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:05:56 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.