MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / plottableClick

Method plottableClick

re/graphingwindow.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void GraphingWindow::plottableClick(QCPAbstractPlottable* plottable, int dataIdx, QMouseEvent* event)
226{
227 qDebug() << "plottableClick";
228 double x, y;
229 QCPGraph *graph = reinterpret_cast<QCPGraph *>(plottable);
230 graph->pixelsToCoords(event->localPos(), x, y);
231 locationText->setText("X: " + QString::number(x, 'f', 3) + " Y: " + QString::number(y, 'f', 3));
232}
233
234void GraphingWindow::plottableDoubleClick(QCPAbstractPlottable* plottable, int dataIdx, QMouseEvent* event)
235{

Callers

nothing calls this directly

Calls 2

pixelsToCoordsMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected