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/StoreUI.cpp | |
| parent | d52f6c9f71c1ee94539fe94bd821df608d7ee602 (diff) | |
[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/StoreUI.cpp')
| -rw-r--r-- | pokemodr/StoreUI.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp index 9480110b..61957593 100644 --- a/pokemodr/StoreUI.cpp +++ b/pokemodr/StoreUI.cpp @@ -42,21 +42,20 @@ StoreUI::StoreUI(Store* s, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(store, store_mod); connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); + init(); +} + +void StoreUI::refreshGui() +{ + varItems->clear(); for (int i = 0; i < store->getPokemod()->getItemCount(); ++i) { const Item* it = store->getPokemod()->getItem(i); QListWidgetItem* lwi = new QListWidgetItem(it->getName(), varItems); lwi->setData(Qt::UserRole, it->getId()); } - setGui(); - emit(changed(false)); } -// KToolbar getToolbar(QWidget* parent) -// { -// -// } - void StoreUI::setGui() { varName->setText(store_mod->getName()); |
