KUnitConversion
unitcategory.cpp
Go to the documentation of this file.
void setMostCommonUnits(const QList< int > &units)
Definition: unitcategory.cpp:80
void setName(const QString &name)
Definition: unitcategory.cpp:156
void setDescription(const QString &desc)
Definition: unitcategory.cpp:176
KLocalizedString symbolStringFormat() const
Definition: unitcategory.cpp:65
Value convert(const Value &value, const QString &toUnit=QString())
Convert value to another unit.
Definition: unitcategory.cpp:98
Definition: value.h:32
QString description() const
Definition: unitcategory.cpp:171
QList< UnitPtr > mostCommonUnits() const
Return most common units in this category.
Definition: unitcategory.cpp:75
void addIdMapValue(UnitPtr unit, int id)
Definition: unitcategory.cpp:132
void addUnitMapValues(UnitPtr unit, const QString &names)
Definition: unitcategory.cpp:124
void setDefaultUnit(UnitPtr defaultUnit)
Definition: unitcategory.cpp:161
Definition: unitcategory.h:33
bool hasUnit(const QString &unit) const
Check if unit category has a unit.
Definition: unitcategory.cpp:93
QStringList allUnits() const
Return all unit names, short names and unit synonyms in this category.
Definition: unitcategory.cpp:88
void setSymbolStringFormat(const KLocalizedString &symbolStringFormat)
Definition: unitcategory.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.