summaryrefslogtreecommitdiffstats
path: root/pokemodr/ItemUI.cpp
diff options
context:
space:
mode:
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));
}