Refactor out findClosestPlotItem

This commit is contained in:
Gaute Lindkvist
2020-07-28 08:48:01 +02:00
parent ae23e2f252
commit ee5c058634
2 changed files with 40 additions and 17 deletions

View File

@@ -162,6 +162,11 @@ protected:
virtual void endZoomOperations();
private:
void findClosestPlotItem( const QPoint& pos,
QwtPlotItem** closestItem,
int* closestCurvePoint,
double* distanceFromClick ) const;
void selectClosestPlotItem( const QPoint& pos, bool toggleItemInSelection = false );
static int defaultMinimumWidth();
void replot() override;