Mercurial > hg > easaier-soundaccess
diff widgets/ItemLayerList.cpp @ 57:4f3e6a09239a
(none)
author | benoitrigolleau |
---|---|
date | Wed, 23 May 2007 15:11:52 +0000 |
parents | 81921835ddf1 |
children | b3c3a5fa185f |
line wrap: on
line diff
--- a/widgets/ItemLayerList.cpp Wed May 23 13:09:19 2007 +0000 +++ b/widgets/ItemLayerList.cpp Wed May 23 15:11:52 2007 +0000 @@ -93,6 +93,18 @@ void ItemLayerList::setPropertyBox(PropertyBox *box){ m_propertyBox = box; + if(m_propertyBox!=0){ + connect(checkBox1,SIGNAL(stateChanged(int)),m_propertyBox,SLOT(layerVisibilityChanged(int))); + connect(m_propertyBox, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); + if(m_propertyBox->showButton() == 0){ + checkBox1->setEnabled(false); + } + if(m_propertyBox->playButton() ==0 ){ + checkBox2->setEnabled(false); + } + } + + //connect(); } void ItemLayerList::configAction(){ @@ -108,9 +120,14 @@ ItemLayerList::configAction(); } +void ItemLayerList::showLayer(bool value){ + changeCheckBox1State(value); + +} +