changeset 99:ca1f73f027f5

fix the play checkBox bug
author benoitrigolleau
date Wed, 11 Jul 2007 12:18:15 +0000
parents c5387d9e572a
children 133c282edba1
files widgets/ItemLayerList.cpp widgets/ItemLayerList.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/ItemLayerList.cpp	Tue Jul 10 16:35:33 2007 +0000
+++ b/widgets/ItemLayerList.cpp	Wed Jul 11 12:18:15 2007 +0000
@@ -125,9 +125,13 @@
 
 void ItemLayerList::showLayer(bool value){
 	changeCheckBoxShowState(value);
-	
 }
 
+void ItemLayerList::playAudibleChanged(bool value){
+	changeCheckBoxPlayState(value);
+}
+
+
 void ItemLayerList::updateCheckboxs(){
 	Layer *layer = dynamic_cast<Layer *>(m_container);
 	if (layer) {
@@ -153,7 +157,7 @@
 		m_checkBoxPlay->setEnabled(true);
         m_checkBoxPlay->setChecked(!params->isPlayMuted());
 
-		connect(params, SIGNAL(playAudibleChanged(bool)),m_checkBoxPlay, SLOT(setState(bool)));
+		connect(params, SIGNAL(playAudibleChanged(bool)),this, SLOT(playAudibleChanged(bool)));
 		connect(m_checkBoxPlay, SIGNAL(stateChanged(int)),params, SLOT(setPlayAudible(int)));
 	}else{
 		m_checkBoxPlay->setEnabled(false);
--- a/widgets/ItemLayerList.h	Tue Jul 10 16:35:33 2007 +0000
+++ b/widgets/ItemLayerList.h	Wed Jul 11 12:18:15 2007 +0000
@@ -50,6 +50,7 @@
 private slots :
 	void openPropertyBox();
 	void showLayer(bool value);
+	void playAudibleChanged(bool value);
 	void updateCheckboxs();
 	void updateColor();