From: ageay Date: Mon, 15 Oct 2012 08:39:58 +0000 (+0000) Subject: Some simplifications X-Git-Tag: V6_6_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=578375ad725527fe83666fdf8af499c2e722b5a8;p=modules%2Fgui.git Some simplifications --- diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 3e65e51fe..7d476dc54 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -298,22 +298,7 @@ void Plot2d_ViewFrame::EraseAll() } myIntermittentSegmentList.clear(); } - - // 2)- Erase all curves points markers - - int nbMark = myMarkerList.size(); - if (nbMark > 0) - { - for (int imar=0; imar < nbMark; imar++) - { - QwtPlotMarker *marker = myMarkerList[imar]; - - marker->detach(); // erase in QwtPlot window - delete marker; - } - myMarkerList.clear(); - } - + // The graphic view's picker Plot2d_QwtPlotPicker *picker = myPlot->getPicker(); diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index a517e96a2..8125635a6 100755 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -319,9 +319,6 @@ protected: // List of intermittent segments to connect curves QList myIntermittentSegmentList; - // List of markers associated with curves points - QList myMarkerList; - // List of curves Plot2d_Curve QList myPlot2dCurveList; };