summaryrefslogtreecommitdiff
path: root/src/gui/shoplistbox.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-09 14:25:42 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-09 14:25:42 +0000
commitaca696b5c784bfbb426c50ac58e93e3d61944b39 (patch)
treec316560d66e3f0f1bfd06fee672aea4399c50ada /src/gui/shoplistbox.h
parent271374e1b887d92f2a10b564e33a6781065c3d6f (diff)
downloadmana-client-aca696b5c784bfbb426c50ac58e93e3d61944b39.tar.gz
mana-client-aca696b5c784bfbb426c50ac58e93e3d61944b39.tar.bz2
mana-client-aca696b5c784bfbb426c50ac58e93e3d61944b39.tar.xz
mana-client-aca696b5c784bfbb426c50ac58e93e3d61944b39.zip
Fixed problem with row height in shop list box.
Diffstat (limited to 'src/gui/shoplistbox.h')
-rw-r--r--src/gui/shoplistbox.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/shoplistbox.h b/src/gui/shoplistbox.h
index aeceab1b..837f745f 100644
--- a/src/gui/shoplistbox.h
+++ b/src/gui/shoplistbox.h
@@ -52,6 +52,11 @@ class ShopListBox : public ListBox
*/
void draw(gcn::Graphics *graphics);
+ /**
+ * Returns the height of a row.
+ */
+ unsigned int getRowHeight() const { return mRowHeight; }
+
void mousePressed(gcn::MouseEvent &event);
/**
@@ -79,7 +84,7 @@ class ShopListBox : public ListBox
*/
ShopItems *mShopItems;
- int mRowHeight; /**< Row Height */
+ unsigned int mRowHeight; /**< Row Height */
bool mPriceCheck;
};