Mercurial > hg > svgui
diff layer/SliceLayer.h @ 1389:1eb560b363e7 spectrogramparam
Make "zoom to region" work sensibly for slice/spectrum layers; ensure that min/max bin are remapped properly when changing fft size
author | Chris Cannam |
---|---|
date | Tue, 13 Nov 2018 14:06:48 +0000 |
parents | fc3d89f88690 |
children | 3c99083a4d83 |
line wrap: on
line diff
--- a/layer/SliceLayer.h Tue Nov 13 13:39:01 2018 +0000 +++ b/layer/SliceLayer.h Tue Nov 13 14:06:48 2018 +0000 @@ -75,7 +75,9 @@ virtual void setVerticalZoomStep(int); virtual RangeMapper *getNewVerticalZoomRangeMapper() const; - virtual bool hasTimeXAxis() const { return false; } + virtual bool hasTimeXAxis() const override { return false; } + + virtual void zoomToRegion(const LayerGeometryProvider *, QRect) override; virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; }