summaryrefslogtreecommitdiffstats
path: root/pokemodr/ItemUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-23 03:40:24 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-23 03:40:24 +0000
commitd7bc310363c98994457e7882e7010e276169f00a (patch)
treeb59a7e27c9c5a9fc15c959a289b9ab105127a4aa /pokemodr/ItemUI.cpp
parent426721374e515ed14fc3b8d2afabfbb34e223e60 (diff)
downloadsigen-d7bc310363c98994457e7882e7010e276169f00a.tar.gz
sigen-d7bc310363c98994457e7882e7010e276169f00a.tar.xz
sigen-d7bc310363c98994457e7882e7010e276169f00a.zip
[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
Diffstat (limited to 'pokemodr/ItemUI.cpp')
-rw-r--r--pokemodr/ItemUI.cpp16
1 files changed, 8 insertions, 8 deletions
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));
}