summaryrefslogtreecommitdiffstats
path: root/pokemodr/SoundUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-15 17:03:09 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-15 17:03:09 +0000
commit77124f3f105ea3837022d20a49028309a211c4b0 (patch)
tree1cde0a6cc51bdd1048eb3d68b104a4abe2991377 /pokemodr/SoundUI.cpp
parent9b537cc98f99f9de4f153dd33f6561d5cd89b2a6 (diff)
downloadsigen-77124f3f105ea3837022d20a49028309a211c4b0.tar.gz
sigen-77124f3f105ea3837022d20a49028309a211c4b0.tar.xz
sigen-77124f3f105ea3837022d20a49028309a211c4b0.zip
[FIX] Refactored the apply/discard buttons out of the widgets
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@137 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/SoundUI.cpp')
-rw-r--r--pokemodr/SoundUI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/pokemodr/SoundUI.cpp b/pokemodr/SoundUI.cpp
index f6142884..299861ab 100644
--- a/pokemodr/SoundUI.cpp
+++ b/pokemodr/SoundUI.cpp
@@ -38,7 +38,6 @@ SoundUI::SoundUI(Sound* sound, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(sound, new Sound(*sound));
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
connect(modified(), SIGNAL(error(const QString&)), this, SLOT(setGui()));
connect(modified(), SIGNAL(error(const QString&)), this, SLOT(errorMessage(const QString&)));
connect(modified(), SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&)));
@@ -74,13 +73,13 @@ void SoundUI::setGui()
varName->setText(static_cast<Sound*>(modified())->name());
}
-void SoundUI::on_buttonApply_clicked()
+void SoundUI::apply()
{
*static_cast<Sound*>(original()) = *static_cast<Sound*>(modified());
emit(changed(false));
}
-void SoundUI::on_buttonDiscard_clicked()
+void SoundUI::discard()
{
*static_cast<Sound*>(modified()) = *static_cast<Sound*>(original());
setGui();