From fdd0eec1d145fb8ac97b4cc9aaed5218214416ec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 15 May 2008 19:55:43 +0000 Subject: [FIX] Refactored out connections made within widgets [FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/PokemodUI.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pokemodr/PokemodUI.cpp') diff --git a/pokemodr/PokemodUI.cpp b/pokemodr/PokemodUI.cpp index f04ee87e..5977ea52 100644 --- a/pokemodr/PokemodUI.cpp +++ b/pokemodr/PokemodUI.cpp @@ -35,10 +35,6 @@ PokemodUI::PokemodUI(Pokemod* pokemod, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(pokemod, new Pokemod(*pokemod)); - connect(modified(), SIGNAL(error(const QString&)), this, SLOT(setGui())); - connect(modified(), SIGNAL(error(const QString&)), this, SLOT(errorMessage(const QString&))); - connect(modified(), SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&))); - connect(modified(), SIGNAL(changed()), this, SLOT(setChanged())); init(); } @@ -64,7 +60,7 @@ void PokemodUI::refreshGui() types << static_cast(original())->item(i)->name(); // TODO: set the typechart corrently // for (int j = 0; j < static_cast(original())->typeCount(); ++j) -// static_cast(varTypechart->item(i, j))->setData(Qt::EditRole, QVariant::fromValue((*typeChart)(i, j))); +// varTypechart->item(i, j)->setData(Qt::EditRole, QVariant::fromValue(typeChart->at(i, j))); } varTypechart->setVerticalHeaderLabels(types); varTypechart->setHorizontalHeaderLabels(types); -- cgit