Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/Pane.cpp Thu Feb 02 17:31:08 2006 +0000 +++ b/widgets/Pane.cpp Fri Feb 03 17:30:47 2006 +0000 @@ -40,12 +40,18 @@ bool Pane::shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos) { +/*!!! for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) { --vi; if (layer != *vi) return false; pos = m_identifyPoint; return m_identifyFeatures; } +*/ + if (layer == getSelectedLayer()) { + pos = m_identifyPoint; + return m_identifyFeatures; + } return false; } @@ -162,34 +168,6 @@ paint.restore(); } - -/*!!! - QRect descRect = (*vi)->getFeatureDescriptionRect(paint, - m_identifyPoint); - if (descRect.width() > 0 && descRect.height() > 0 && - r.left() + r.width() >= width() - descRect.width() && - r.top() < descRect.height()) { - -// Profiler profiler("Pane::paintEvent - painting local feature description", true); - -// std::cerr << "Pane::paintEvent: calling paint.save() in feature description block" << std::endl; - paint.save(); - - paint.setPen(Qt::black); - paint.setBrush(Qt::white); - - QRect rect(width() - descRect.width() - 1, 0, - descRect.width(), descRect.height()); - - paint.drawRect(rect); - - paint.setBrush(Qt::NoBrush); - (*vi)->paintLocalFeatureDescription(paint, rect, m_identifyPoint); - - paint.restore(); - } - -*/ } break;