comparison layer/SpectrogramLayer.h @ 1242:b10bd0611d16

Fix various "model deleted with no aboutToDelete notification" warnings (and one associated potential memory leak)
author Chris Cannam
date Wed, 22 Feb 2017 12:01:39 +0000
parents a496986aa61b
children a34a2a25907c
comparison
equal deleted inserted replaced
1240:c2e923aa4015 1242:b10bd0611d16
318 318
319 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id 319 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id
320 mutable ViewRendererMap m_renderers; 320 mutable ViewRendererMap m_renderers;
321 Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const; 321 Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const;
322 void invalidateRenderers(); 322 void invalidateRenderers();
323
324 void deleteDerivedModels();
323 325
324 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; 326 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const;
325 327
326 void paintDetailedScale(LayerGeometryProvider *v, 328 void paintDetailedScale(LayerGeometryProvider *v,
327 QPainter &paint, QRect rect) const; 329 QPainter &paint, QRect rect) const;