diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-26 22:47:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-26 22:47:45 +0300 |
commit | 83981f76348655507d225aca220893e668b09bdc (patch) | |
tree | a86b9a28bb584bed5a6f397bc0b47aba908d0f82 /src/gui/widgets/statspage.cpp | |
parent | 8f3d5cce14912a4c955a02f50a13130ca15b585e (diff) | |
download | manaplus-83981f76348655507d225aca220893e668b09bdc.tar.gz manaplus-83981f76348655507d225aca220893e668b09bdc.tar.bz2 manaplus-83981f76348655507d225aca220893e668b09bdc.tar.xz manaplus-83981f76348655507d225aca220893e668b09bdc.zip |
Add support for loading stats pages from stats.xml
Diffstat (limited to 'src/gui/widgets/statspage.cpp')
-rw-r--r-- | src/gui/widgets/statspage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/statspage.cpp b/src/gui/widgets/statspage.cpp index b41cc6224..1f30f2862 100644 --- a/src/gui/widgets/statspage.cpp +++ b/src/gui/widgets/statspage.cpp @@ -37,7 +37,8 @@ #include "debug.h" -StatsPage::StatsPage(const Widget2 *const widget) : +StatsPage::StatsPage(const Widget2 *const widget, + const std::string &page) : Container(widget), WidgetListener(), StatListener(), @@ -51,7 +52,7 @@ StatsPage::StatsPage(const Widget2 *const widget) : mAttrScroll->setVerticalScrollPolicy(ScrollArea::SHOW_AUTO); add(mAttrScroll); - const std::vector<BasicStat> &basicStats = StatDb::getExtendedStats(); + const std::vector<BasicStat> &basicStats = StatDb::getStats(page); FOR_EACH (std::vector<BasicStat>::const_iterator, it, basicStats) { const BasicStat &stat = *it; |