* @brief Prints coordinates of mouse pointer in status bar on mouse release * @param event */
| 559 | * @param event |
| 560 | */ |
| 561 | void MainWindow::onMouseMoveInPlot(QMouseEvent *event) |
| 562 | { |
| 563 | int xx = int(ui->plot->xAxis->pixelToCoord(event->x())); |
| 564 | int yy = int(ui->plot->yAxis->pixelToCoord(event->y())); |
| 565 | QString coordinates("X: %1 Y: %2"); |
| 566 | coordinates = coordinates.arg(xx).arg(yy); |
| 567 | ui->statusBar->showMessage(coordinates); |
| 568 | } |
| 569 | /** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |
| 570 | |
| 571 | /** |
nothing calls this directly
no test coverage detected