summaryrefslogtreecommitdiffstats
path: root/pokemodr/TileUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/TileUI.cpp')
-rw-r--r--pokemodr/TileUI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/pokemodr/TileUI.cpp b/pokemodr/TileUI.cpp
index 6a22bd32..f4d033d1 100644
--- a/pokemodr/TileUI.cpp
+++ b/pokemodr/TileUI.cpp
@@ -43,7 +43,7 @@ TileUI::TileUI(Tile* t, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(tile, tile_mod);
- connect(this, SIGNAL(setChanged(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
varAccessibility->addItems(DirectionStr.mid(0, 4));
varHMType->addItems(HMStr);
for (int i = 0; i < tile->getPokemod()->getTileCount(); ++i)
@@ -95,20 +95,20 @@ void TileUI::setGui()
void TileUI::on_buttonApply_clicked()
{
*tile = *tile_mod;
- emit(setChanged(false));
+ emit(changed(false));
}
void TileUI::on_buttonDiscard_clicked()
{
*tile_mod = *tile;
- emit(setChanged(false));
+ emit(changed(false));
setGui();
}
void TileUI::on_varName_textChanged(const QString& n)
{
tile_mod->setName(n);
- emit(setChanged(true));
+ emit(changed(true));
}
void TileUI::on_varImage_pressed()
@@ -132,7 +132,7 @@ void TileUI::on_varWildNum_valueChanged(const int m)
try
{
tile_mod->setWildChanceNum(m);
- emit(setChanged(true));
+ emit(changed(true));
}
catch (BoundsException& e)
{
@@ -146,7 +146,7 @@ void TileUI::on_varWildDenom_valueChanged(const int m)
try
{
tile_mod->setWildChanceDenom(m);
- emit(setChanged(true));
+ emit(changed(true));
}
catch (BoundsException& e)
{
@@ -164,7 +164,7 @@ void TileUI::on_varAccessibility_itemSelectionChanged()
const QListWidgetItem* lwi = varAccessibility->item(i);
tile_mod->setFrom(lwi->data(Qt::UserRole).toInt(), lwi->isSelected());
}
- emit(setChanged(true));
+ emit(changed(true));
}
catch (BoundsException& e)
{
@@ -180,7 +180,7 @@ void TileUI::on_boxHMs_toggled(const bool h)
varHMType->setCurrentIndex(-1);
varHMUnder->setCurrentIndex(-1);
setGui();
- emit(setChanged(true));
+ emit(changed(true));
}
}
@@ -217,7 +217,7 @@ void TileUI::on_boxForces_toggled(const bool f)
varForce->setCurrentIndex(-1);
varDirection->setCurrentIndex(-1);
setGui();
- emit(setChanged(true));
+ emit(changed(true));
}
}