# HG changeset patch # User benoitrigolleau # Date 1184156295 0 # Node ID ca1f73f027f5b526f10ba6bdb30b89c3b9c2e1f1 # Parent c5387d9e572adb0973222720b1a530cd976531f6 fix the play checkBox bug diff -r c5387d9e572a -r ca1f73f027f5 widgets/ItemLayerList.cpp --- 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(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); diff -r c5387d9e572a -r ca1f73f027f5 widgets/ItemLayerList.h --- 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();