summaryrefslogtreecommitdiffstats
path: root/pokemodr/CoinListUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-19 22:02:19 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-19 22:02:19 +0000
commit2d3ab5c520bb61fecb66e0f143d93c3386bf451a (patch)
tree0e8d918c7485505c80edb1922bcba201e3f7c0be /pokemodr/CoinListUI.cpp
parenta8f15fe76349d6f59464a7cc66432ff7f394f30d (diff)
downloadsigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.tar.gz
sigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.tar.xz
sigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.zip
[FIX] Store item setting is now less touchy
[FIX] Some ui forms were missing things [FIX] UI logic with having ID data embedded instead of roundabout resolution [ADD] Fleshed out more for pokemodr TODO git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@64 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/CoinListUI.cpp')
-rw-r--r--pokemodr/CoinListUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp
index e2b61ee5..b813d94f 100644
--- a/pokemodr/CoinListUI.cpp
+++ b/pokemodr/CoinListUI.cpp
@@ -46,7 +46,7 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) :
if (e->getEffect() == ItemEffect::E_CoinCase)
{
varValue->addItem(it->getName());
- varValue->setItemData(varValue->count() - 1, QVariant(e->getVal1()));
+ varValue->setItemData(varValue->count() - 1, e->getVal1());
}
}
}
@@ -61,7 +61,7 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) :
void CoinListUI::setGui()
{
varName->setText(coinList_mod->getName());
- varValue->setCurrentIndex(varValue->findData(QVariant(coinList_mod->getValue())));
+ varValue->setCurrentIndex(varValue->findData(coinList_mod->getValue()));
}
void CoinListUI::on_buttonApply_clicked()