summaryrefslogtreecommitdiffstats
path: root/sigmodr/MapEffectUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-20 01:24:48 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-20 01:24:48 -0500
commit2b2d58536eff777688c521043fea482effc3e517 (patch)
tree68d5764aa524d06215aaa5b242b1facc43e59bb6 /sigmodr/MapEffectUI.cpp
parent5e31e49db9d049f5c668a8ff5c2e258ba87d0245 (diff)
downloadsigen-2b2d58536eff777688c521043fea482effc3e517.tar.gz
sigen-2b2d58536eff777688c521043fea482effc3e517.tar.xz
sigen-2b2d58536eff777688c521043fea482effc3e517.zip
Cleaned up MapEffect widget
Diffstat (limited to 'sigmodr/MapEffectUI.cpp')
-rw-r--r--sigmodr/MapEffectUI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/MapEffectUI.cpp b/sigmodr/MapEffectUI.cpp
index 4708683a..3735b741 100644
--- a/sigmodr/MapEffectUI.cpp
+++ b/sigmodr/MapEffectUI.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,7 +49,7 @@ void Sigmodr::MapEffectUI::setGui()
varName->setText(qobject_cast<Sigmod::MapEffect*>(modified())->name());
varSkin->setCurrentIndex(varSkin->findData(qobject_cast<Sigmod::MapEffect*>(modified())->skin()));
varScript->setValue(qobject_cast<Sigmod::MapEffect*>(modified())->script());
- varIsGhost->setChecked(qobject_cast<Sigmod::MapEffect*>(modified())->isGhost() ? Qt::Checked : Qt::Unchecked);
+ varIsGhost->setCheckState(qobject_cast<Sigmod::MapEffect*>(modified())->isGhost() ? Qt::Checked : Qt::Unchecked);
}
void Sigmodr::MapEffectUI::apply()
@@ -82,7 +82,7 @@ void Sigmodr::MapEffectUI::on_varScript_valueChanged(const Sigcore::Script& scri
qobject_cast<Sigmod::MapEffect*>(modified())->setScript(script);
}
-void Sigmodr::MapEffectUI::on_varIsGhost_clicked(const bool isGhost)
+void Sigmodr::MapEffectUI::on_varIsGhost_toggled(const bool isGhost)
{
qobject_cast<Sigmod::MapEffect*>(modified())->setIsGhost(isGhost);
}