From d26c1c706f1f386ef7813a0499ea3eda3ec43e10 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 28 Feb 2008 02:18:33 +0000 Subject: [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 --- pokemodr/RulesUI.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'pokemodr/RulesUI.cpp') 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() { -- cgit