summaryrefslogtreecommitdiff
path: root/src/gui/popups/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-31 18:57:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-31 18:57:07 +0300
commit5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 (patch)
treed4fc1a73ea263a737e56d740a266bea34a1bbfcd /src/gui/popups/itempopup.cpp
parent31e7a7d05f36495df0176fc31d5894e216c3cdf4 (diff)
downloadmanaverse-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.gz
manaverse-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.bz2
manaverse-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.xz
manaverse-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.zip
Move units into db directory.
Diffstat (limited to 'src/gui/popups/itempopup.cpp')
-rw-r--r--src/gui/popups/itempopup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index a659a94bd..5cdc1dd20 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -25,7 +25,6 @@
#include "actormanager.h"
#include "configuration.h"
-#include "units.h"
#include "gui/gui.h"
@@ -39,6 +38,8 @@
#include "resources/iteminfo.h"
+#include "resources/db/unitsdb.h"
+
#include "resources/image/image.h"
#include "resources/item/item.h"
@@ -222,7 +223,7 @@ void ItemPopup::setItem(const ItemInfo &item,
mItemEffect->setTextWrapped(item.getEffect(), 196);
// TRANSLATORS: popup label
mItemWeight->setTextWrapped(strprintf(_("Weight: %s"),
- Units::formatWeight(item.getWeight()).c_str()), 196);
+ UnitsDb::formatWeight(item.getWeight()).c_str()), 196);
mItemCards->setTextWrapped(getCardsString(cards), 196);
int minWidth = mItemName->getWidth() + space;