Mercurial > hg > svgui
diff layer/Colour3DPlotRenderer.cpp @ 1139:2976f57164ac spectrogram-minor-refactor
Reconnect double-click region select in spectrogram
author | Chris Cannam |
---|---|
date | Thu, 04 Aug 2016 17:29:33 +0100 |
parents | 998e31e92dbe |
children | f19dcb288123 |
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.cpp Thu Aug 04 14:02:56 2016 +0100 +++ b/layer/Colour3DPlotRenderer.cpp Thu Aug 04 17:29:33 2016 +0100 @@ -25,6 +25,7 @@ #include "LayerGeometryProvider.h" #include "VerticalBinLayer.h" #include "PaintAssistant.h" +#include "ImageRegionFinder.h" #include "view/ViewManager.h" // for main model sample rate. Pity @@ -1035,4 +1036,11 @@ } } - +QRect +Colour3DPlotRenderer::findSimilarRegionExtents(QPoint p) const +{ + QImage image = m_cache.getImage(); + ImageRegionFinder finder; + QRect rect = finder.findRegionExtents(&image, p); + return rect; +}