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*){} |