summaryrefslogtreecommitdiff
path: root/src/gui/shop.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 03:07:31 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 03:07:31 +0000
commitefbf5fa72206086a7563ccfeddd601d324c7912f (patch)
tree20372135ab3fedd7db0a2370bcf985df7608f838 /src/gui/shop.cpp
parent2fb12d513bb7e10375893e1ae22da3538b20fa27 (diff)
downloadmana-efbf5fa72206086a7563ccfeddd601d324c7912f.tar.gz
mana-efbf5fa72206086a7563ccfeddd601d324c7912f.tar.bz2
mana-efbf5fa72206086a7563ccfeddd601d324c7912f.tar.xz
mana-efbf5fa72206086a7563ccfeddd601d324c7912f.zip
Created a ListModel for ShopItems.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r--src/gui/shop.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index 1dd498a8..3706cdf8 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -23,3 +23,12 @@
#include "shop.h"
+int ShopItems::getNumberOfElements()
+{
+ return size();
+}
+
+std::string ShopItems::getElementAt(int i)
+{
+ return at(i).name;
+}