Mercurial > hg > easaier-soundaccess
comparison widgets/ItemLayerList.cpp @ 61:0387f53242b2
fix the 2ed color bug in the layer list. Now color in layer list is ok.
author | benoitrigolleau |
---|---|
date | Tue, 29 May 2007 09:26:15 +0000 |
parents | 32b4949086a5 |
children | ca1f73f027f5 |
comparison
equal
deleted
inserted
replaced
60:32b4949086a5 | 61:0387f53242b2 |
---|---|
100 | 100 |
101 m_container = m_propertyBox->container(); | 101 m_container = m_propertyBox->container(); |
102 | 102 |
103 | 103 |
104 updateCheckboxs(); | 104 updateCheckboxs(); |
105 updateColor(); | |
105 connect(m_checkBoxShow,SIGNAL(stateChanged(int)),m_propertyBox,SLOT(layerVisibilityChanged(int))); | 106 connect(m_checkBoxShow,SIGNAL(stateChanged(int)),m_propertyBox,SLOT(layerVisibilityChanged(int))); |
106 connect(m_propertyBox, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); | 107 connect(m_propertyBox, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); |
107 } | 108 } |
108 | 109 |
109 //connect(); | 110 //connect(); |
161 | 162 |
162 void ItemLayerList::updateColor(){ | 163 void ItemLayerList::updateColor(){ |
163 Layer *layer = dynamic_cast<Layer *>(m_container); | 164 Layer *layer = dynamic_cast<Layer *>(m_container); |
164 if (layer) { | 165 if (layer) { |
165 QPalette palette; | 166 QPalette palette; |
166 palette.setColor(QPalette::Button,QColor ( 100, 60, 20)); | 167 palette.setColor(QPalette::Button,layer->getBaseColour()); |
167 m_checkBoxShow->setPalette(palette); | 168 m_checkBoxShow->setPalette(palette); |
168 } | 169 } |
169 } | 170 } |
170 | 171 |
171 | 172 |