| 223 | } |
| 224 | |
| 225 | void 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 | |
| 234 | void GraphingWindow::plottableDoubleClick(QCPAbstractPlottable* plottable, int dataIdx, QMouseEvent* event) |
| 235 | { |
nothing calls this directly
no test coverage detected