diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-15 11:29:40 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-15 11:29:40 +0000 |
commit | 79e803232438d41cce80467a97e9efde8e6c0c70 (patch) | |
tree | f8fd399a13913ccbc6942f6385f9852426f9ebf1 /src/gui/itempopup.cpp | |
parent | 0a106989bd16c48525f01cb8515809e74f37a8d8 (diff) | |
download | mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.gz mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.bz2 mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.xz mana-79e803232438d41cce80467a97e9efde8e6c0c70.zip |
Add configurable units system
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r-- | src/gui/itempopup.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp index 008a41d9..ee28435b 100644 --- a/src/gui/itempopup.cpp +++ b/src/gui/itempopup.cpp @@ -32,6 +32,8 @@ #include "widgets/layout.h" +#include "../units.h" + #include "../resources/iteminfo.h" #include "../utils/gettext.h" @@ -108,8 +110,8 @@ void ItemPopup::setItem(const ItemInfo &item) mItemName->setWidth(boldFont->getWidth(item.getName())); mItemDesc->setTextWrapped(item.getDescription(), 196); mItemEffect->setTextWrapped(item.getEffect(), 196); - mItemWeight->setTextWrapped(_("Weight: ") + toString(item.getWeight()) + - _(" grams"), 196); + mItemWeight->setTextWrapped(_("Weight: ") + + Units::formatWeight(item.getWeight()), 196); int minWidth = mItemName->getWidth(); |