| 327 | } |
| 328 | |
| 329 | void MainWindow::mousePressEvent(QMouseEvent *event){ |
| 330 | if(event->button() == Qt::LeftButton){ |
| 331 | mousePressed = true; |
| 332 | lastPos = event->globalPosition().toPoint() - this->frameGeometry().topLeft(); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | void MainWindow::mouseMoveEvent(QMouseEvent *event){ |
| 337 | if(event->buttons() == Qt::NoButton) |
nothing calls this directly
no outgoing calls
no test coverage detected