diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-28 02:18:33 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-28 02:18:33 +0000 |
| commit | d26c1c706f1f386ef7813a0499ea3eda3ec43e10 (patch) | |
| tree | 20ff2faf90e279b1a9501203a4c8d1e31402b39d /pokemodr/CoinListUI.cpp | |
| parent | d52f6c9f71c1ee94539fe94bd821df608d7ee602 (diff) | |
| download | sigen-d26c1c706f1f386ef7813a0499ea3eda3ec43e10.tar.gz sigen-d26c1c706f1f386ef7813a0499ea3eda3ec43e10.tar.xz sigen-d26c1c706f1f386ef7813a0499ea3eda3ec43e10.zip | |
[FIX] UI classes now have initGui and refreshGui
[FIX] PokeModTreeItem now is the monster class rather than PokeModrUI
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@88 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/CoinListUI.cpp')
| -rw-r--r-- | pokemodr/CoinListUI.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp index 18a0723d..6c65f7a0 100644 --- a/pokemodr/CoinListUI.cpp +++ b/pokemodr/CoinListUI.cpp @@ -41,6 +41,12 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(coinList, coinList_mod); connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); + init(); +} + +void CoinListUI::refreshGui() +{ + varValue->clear(); for (int i = 0; i < coinList->getPokemod()->getItemCount(); ++i) { const Item* it = coinList->getPokemod()->getItem(i); @@ -54,15 +60,8 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) : } } } - setGui(); - emit(changed(false)); } -// KToolbar CoinListUI::getToolbar(QWidget* parent) -// { -// -// } - void CoinListUI::setGui() { varName->setText(coinList_mod->getName()); |
