#9293 MultiPlot: avoid removing non-legend overlays.

The plots can have other kinds of overlays that should not be removed.

Fixes #9293.
This commit is contained in:
Kristian Bendiksen
2022-09-14 10:56:31 +02:00
committed by Magne Sjaastad
parent 7b81490f90
commit dfbdfaa726
3 changed files with 18 additions and 8 deletions

View File

@@ -163,9 +163,10 @@ public:
void scheduleReplot();
virtual void replot() = 0;
void addOverlayFrame( RiuDraggableOverlayFrame* overlayWidget );
void removeOverlayFrame( RiuDraggableOverlayFrame* overlayWidget );
void clearOverlayFrames();
void addOverlayFrame( RiuDraggableOverlayFrame* overlayWidget );
void removeOverlayFrame( RiuDraggableOverlayFrame* overlayWidget );
void clearOverlayFrames( std::function<bool( RiuDraggableOverlayFrame* )> matcher );
virtual void updateLayout() = 0;
virtual void renderTo( QPainter* painter, const QRect& targetRect, double scaling ) = 0;