MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / mousePressEvent

Method mousePressEvent

mainwindow.cpp:329–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected