From 2b2d58536eff777688c521043fea482effc3e517 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 20 Jan 2009 01:24:48 -0500 Subject: Cleaned up MapEffect widget --- sigmodr/MapEffectUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigmodr/MapEffectUI.cpp') 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 + * Copyright 2008-2009 Ben Boeckel * * 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(modified())->name()); varSkin->setCurrentIndex(varSkin->findData(qobject_cast(modified())->skin())); varScript->setValue(qobject_cast(modified())->script()); - varIsGhost->setChecked(qobject_cast(modified())->isGhost() ? Qt::Checked : Qt::Unchecked); + varIsGhost->setCheckState(qobject_cast(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(modified())->setScript(script); } -void Sigmodr::MapEffectUI::on_varIsGhost_clicked(const bool isGhost) +void Sigmodr::MapEffectUI::on_varIsGhost_toggled(const bool isGhost) { qobject_cast(modified())->setIsGhost(isGhost); } -- cgit