src/mainwindow.cpp

changeset 103
94719518e310
parent 97
d9a3b153f679
child 104
cd4df75924b7
equal deleted inserted replaced
101:910890292639 103:94719518e310
403 { 403 {
404 pair.value->setChecked(pair.key == tool); 404 pair.value->setChecked(pair.key == tool);
405 } 405 }
406 } 406 }
407 } 407 }
408
409 void MainWindow::canvasMousePressed(QMouseEvent *event)
410 {
411
412 }
413
414 void MainWindow::canvasMouseReleased(QMouseEvent *event)
415 {
416 BaseTool::MouseEventData eventData;
417 eventData.ev = event;
418 // Qt::KeyboardModifiers keymods;
419 // bool mouseMoved;
420 // Qt::MouseButtons releasedButtons;
421 if (this->selectedTool != nullptr)
422 {
423 this->selectedTool->mouseReleased(eventData);
424 }
425 }
426
427 void MainWindow::canvasMouseDoubleClicked(QMouseEvent* event){}
428 void MainWindow::canvasMouseMoved(QMouseEvent*){}
429 void MainWindow::canvasKeyReleased(QKeyEvent*){}

mercurial