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/CoinListObjectUI.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'pokemodr/CoinListObjectUI.cpp') diff --git a/pokemodr/CoinListObjectUI.cpp b/pokemodr/CoinListObjectUI.cpp index 19957476..85953908 100644 --- a/pokemodr/CoinListObjectUI.cpp +++ b/pokemodr/CoinListObjectUI.cpp @@ -43,15 +43,13 @@ CoinListObjectUI::CoinListObjectUI(CoinListObject* c, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(coinListObject, coinListObject_mod); connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); - varType->addItems(CoinListObject::TypeStr); - setGui(); - emit(changed(false)); + init(); } -// KToolbar CoinListObjectUI::getToolbar(QWidget* parent) -// { -// -// } +void CoinListObjectUI::initGui() +{ + varType->addItems(CoinListObject::TypeStr); +} void CoinListObjectUI::setGui() { -- cgit