diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-31 03:07:31 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-31 03:07:31 +0000 |
commit | efbf5fa72206086a7563ccfeddd601d324c7912f (patch) | |
tree | 20372135ab3fedd7db0a2370bcf985df7608f838 /src/gui/shop.cpp | |
parent | 2fb12d513bb7e10375893e1ae22da3538b20fa27 (diff) | |
download | mana-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.cpp | 9 |
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; +} |