From fdd0eec1d145fb8ac97b4cc9aaed5218214416ec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 15 May 2008 19:55:43 +0000 Subject: [FIX] Refactored out connections made within widgets [FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/SoundUI.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pokemodr/SoundUI.cpp') diff --git a/pokemodr/SoundUI.cpp b/pokemodr/SoundUI.cpp index 299861ab..717c4b95 100644 --- a/pokemodr/SoundUI.cpp +++ b/pokemodr/SoundUI.cpp @@ -38,10 +38,6 @@ SoundUI::SoundUI(Sound* sound, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(sound, new Sound(*sound)); - 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&))); - connect(modified(), SIGNAL(changed()), this, SLOT(setChanged())); init(); } @@ -53,7 +49,7 @@ SoundUI::~SoundUI() void SoundUI::initGui() { seeker->setMediaObject(m_media); - connect(m_media, SIGNAL(finished()), buttonStop, SLOT(clicked())); + connect(m_media, SIGNAL(finished()), buttonStop, SIGNAL(clicked())); buttonPlayPause->setIcon(KIcon("media-playback-play")); buttonStop->setIcon(KIcon("media-playback-stop")); buttonBrowse->setIcon(KIcon("document-open")); -- cgit