summaryrefslogtreecommitdiffstats
path: root/pokemodr/TileUI.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/TileUI.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/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));
}
}