diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-24 15:30:48 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-24 15:30:48 +0000 |
| commit | dec252e25fc63fe1bb321dd87772181fc76e998f (patch) | |
| tree | b2df56af5a1d5181bc9c65399b536946467bc4bc /pokemodr/BadgeUI.cpp | |
| parent | 11a880fe22a7602dbaec5716e25b32b09d291e65 (diff) | |
| download | sigen-dec252e25fc63fe1bb321dd87772181fc76e998f.tar.gz sigen-dec252e25fc63fe1bb321dd87772181fc76e998f.tar.xz sigen-dec252e25fc63fe1bb321dd87772181fc76e998f.zip | |
[ADD] More documentation
[ADD] Abilities now hav a description field
[FIX] Fixed up a few minor things in pokemodr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@172 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/BadgeUI.cpp')
| -rw-r--r-- | pokemodr/BadgeUI.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pokemodr/BadgeUI.cpp b/pokemodr/BadgeUI.cpp index 3fc4ab69..537079ce 100644 --- a/pokemodr/BadgeUI.cpp +++ b/pokemodr/BadgeUI.cpp @@ -40,7 +40,6 @@ BadgeUI::~BadgeUI() void BadgeUI::initGui() { connect(varStat, SIGNAL(activated(const int)), this, SLOT(setGui())); - varHMs->addItems(Pokemod::HMStr); } void BadgeUI::refreshGui() @@ -58,8 +57,6 @@ void BadgeUI::setGui() varFace->setIcon(static_cast<Badge*>(modified())->face()); varBadge->setIcon(static_cast<Badge*>(modified())->badge()); varStatMultiplier->setValue(static_cast<Badge*>(modified())->stat(varStat->currentIndex())); - for (int i = 0; i < varHMs->count(); ++i) - varHMs->item(i)->setSelected(static_cast<Badge*>(modified())->hm(i)); } void BadgeUI::apply() @@ -111,9 +108,3 @@ void BadgeUI::on_varStatMultiplier_valueChanged(const Fraction& multiplier) { static_cast<Badge*>(modified())->setStat(varStat->currentIndex(), multiplier); } - -void BadgeUI::on_varHMs_itemSelectionChanged() -{ - for (int i = 0; i < varHMs->count(); ++i) - static_cast<Badge*>(modified())->setHm(i, varHMs->item(i)->isSelected()); -} |
