Add a circle on the selected graph where you double clicked on it. Also show text with the coordinates at the clicked graph location

This commit is contained in:
Collin Kidder
2017-12-14 21:47:18 -05:00
parent a3a2186357
commit b7e8429222
2 changed files with 34 additions and 0 deletions
+3
View File
@@ -46,6 +46,7 @@ private slots:
void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void legendSingleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void plottableDoubleClick(QCPAbstractPlottable* plottable,int dataIdx, QMouseEvent* event);
void plottableClick(QCPAbstractPlottable* plottable, int dataIdx, QMouseEvent* event);
void selectionChanged();
void mousePress();
void mouseWheel();
@@ -79,6 +80,8 @@ private:
QList<GraphParams> graphParams;
QPen selectedPen;
QCPSelectionDecorator *selDecorator;
QCPItemText *locationText;
QCPItemTracer *itemTracer;
bool needScaleSetup; //do we need to set x,y graphing extents?
bool secondsMode;
bool useOpenGL;