summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-03-05 02:02:01 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-03-05 02:02:01 (GMT)
commit55e6bf6d4d8aa186b9bf842883f3146ff41b5171 (patch)
tree06e9957c5691c91379cba32a360cf8448e1d121e
parent531f51ee04569952fcc83618dd6b5ed645142a1d (diff)
Uncomment function, fix logic
-rw-r--r--src/kalziumdataobject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kalziumdataobject.cpp b/src/kalziumdataobject.cpp
index 19f8fa4..356a1a6 100644
--- a/src/kalziumdataobject.cpp
+++ b/src/kalziumdataobject.cpp
@@ -137,12 +137,12 @@ Element* KalziumDataObject::element(int number)
return 0;
return ElementList[ number-1 ];
}
-/*
+
QString KalziumDataObject::unitAsString(const int unit) const
{
- return KUnitConversion::Converter().KUnitConversion::UnitId(unit(unit).data())->symbol();
+ return KUnitConversion::Converter().unit(KUnitConversion::UnitId(unit)).symbol();
}
-*/
+
QPixmap KalziumDataObject::pixmap(int number)
{
// checking that we are requesting a valid element