From 5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jan 2017 18:57:07 +0300 Subject: Move units into db directory. --- src/gui/popups/itempopup.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/popups') 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; -- cgit v1.2.3-70-g09d2