From d7bc310363c98994457e7882e7010e276169f00a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 23 Feb 2008 03:40:24 +0000 Subject: [FIX] Frac bug with type of Over1 [FIX] PokemodUI vtable errors [FIX] Manual .pro file clean up [FIX] Was attempting to emit a slot... git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@72 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/ItemUI.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pokemodr/ItemUI.cpp') diff --git a/pokemodr/ItemUI.cpp b/pokemodr/ItemUI.cpp index fdd7c008..3d2546d7 100644 --- a/pokemodr/ItemUI.cpp +++ b/pokemodr/ItemUI.cpp @@ -37,7 +37,7 @@ ItemUI::ItemUI(Item* i, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(item, item_mod); - connect(this, SIGNAL(setChanged(bool)), boxButtons, SLOT(setDisabled(bool))); + connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool))); for (int i = 0; i < item->getPokemod()->getItemTypeCount(); ++i) { const ItemType* it = item->getPokemod()->getItemType(i); @@ -65,26 +65,26 @@ void ItemUI::setGui() void ItemUI::on_buttonApply_clicked() { *item = *item_mod; - emit(setChanged(false)); + emit(changed(false)); } void ItemUI::on_buttonDiscard_clicked() { *item_mod = *item; - emit(setChanged(false)); + emit(changed(false)); setGui(); } void ItemUI::on_varName_textChanged(const QString& n) { item_mod->setName(n); - emit(setChanged(true)); + emit(changed(true)); } void ItemUI::on_boxSellable_toggled(const bool s) { item_mod->setSellable(s); - emit(setChanged(true)); + emit(changed(true)); } void ItemUI::on_varType_currentIndexChanged(const int t) @@ -92,7 +92,7 @@ void ItemUI::on_varType_currentIndexChanged(const int t) try { item_mod->setType(varType->itemData(t).toInt()); - emit(setChanged(true)); + emit(changed(true)); } catch (Exception& e) { @@ -106,7 +106,7 @@ void ItemUI::on_varPrice_valueChanged(const int p) try { item_mod->setPrice(p); - emit(setChanged(true)); + emit(changed(true)); } catch (BoundsException& e) { @@ -118,5 +118,5 @@ void ItemUI::on_varPrice_valueChanged(const int p) void ItemUI::on_varDescription_textChanged() { item_mod->setDescription(varDescription->toPlainText()); - emit(setChanged(true)); + emit(changed(true)); } -- cgit