diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:57:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:57:07 +0300 |
commit | 5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 (patch) | |
tree | d4fc1a73ea263a737e56d740a266bea34a1bbfcd /src/gui/popups | |
parent | 31e7a7d05f36495df0176fc31d5894e216c3cdf4 (diff) | |
download | plus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.gz plus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.bz2 plus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.xz plus-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.zip |
Move units into db directory.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/itempopup.cpp | 5 |
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; |