Mercurial > hg > svgui
comparison widgets/Pane.cpp @ 27:38fe0ea9e46e
* Some fixes to waveform layer greyscaling
* Tidying in panner class
author | Chris Cannam |
---|---|
date | Fri, 03 Feb 2006 17:30:47 +0000 |
parents | dcdb21b62dbb |
children | 202d1dca67d2 |
comparison
equal
deleted
inserted
replaced
26:94381052a6c9 | 27:38fe0ea9e46e |
---|---|
38 } | 38 } |
39 | 39 |
40 bool | 40 bool |
41 Pane::shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos) | 41 Pane::shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos) |
42 { | 42 { |
43 /*!!! | |
43 for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) { | 44 for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) { |
44 --vi; | 45 --vi; |
45 if (layer != *vi) return false; | 46 if (layer != *vi) return false; |
47 pos = m_identifyPoint; | |
48 return m_identifyFeatures; | |
49 } | |
50 */ | |
51 if (layer == getSelectedLayer()) { | |
46 pos = m_identifyPoint; | 52 pos = m_identifyPoint; |
47 return m_identifyFeatures; | 53 return m_identifyFeatures; |
48 } | 54 } |
49 | 55 |
50 return false; | 56 return false; |
160 desc, | 166 desc, |
161 option); | 167 option); |
162 | 168 |
163 paint.restore(); | 169 paint.restore(); |
164 } | 170 } |
165 | |
166 /*!!! | |
167 QRect descRect = (*vi)->getFeatureDescriptionRect(paint, | |
168 m_identifyPoint); | |
169 if (descRect.width() > 0 && descRect.height() > 0 && | |
170 r.left() + r.width() >= width() - descRect.width() && | |
171 r.top() < descRect.height()) { | |
172 | |
173 // Profiler profiler("Pane::paintEvent - painting local feature description", true); | |
174 | |
175 // std::cerr << "Pane::paintEvent: calling paint.save() in feature description block" << std::endl; | |
176 paint.save(); | |
177 | |
178 paint.setPen(Qt::black); | |
179 paint.setBrush(Qt::white); | |
180 | |
181 QRect rect(width() - descRect.width() - 1, 0, | |
182 descRect.width(), descRect.height()); | |
183 | |
184 paint.drawRect(rect); | |
185 | |
186 paint.setBrush(Qt::NoBrush); | |
187 (*vi)->paintLocalFeatureDescription(paint, rect, m_identifyPoint); | |
188 | |
189 paint.restore(); | |
190 } | |
191 | |
192 */ | |
193 } | 171 } |
194 | 172 |
195 break; | 173 break; |
196 } | 174 } |
197 | 175 |