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/RulesUI.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/RulesUI.cpp')
| -rw-r--r-- | pokemodr/RulesUI.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pokemodr/RulesUI.cpp b/pokemodr/RulesUI.cpp index 823a863d..24b79ea0 100644 --- a/pokemodr/RulesUI.cpp +++ b/pokemodr/RulesUI.cpp @@ -36,15 +36,13 @@ RulesUI::RulesUI(Rules* r, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(rules, rules_mod); connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); - varMaxDV->addItems(Rules::DVStr); - setGui(); - emit(changed(false)); + init(); } -// KToolBar Rules::getToolbar(QWidget* parent) -// { -// return KToolBar(parent); -// } +void RulesUI::initGui() +{ + varMaxDV->addItems(Rules::DVStr); +} void RulesUI::setGui() { |
