| 53 | } |
| 54 | |
| 55 | void AbstractTool::mouseReleaseEvent(QMouseEvent * event) |
| 56 | { |
| 57 | // If the last mouse button was released, we arm the tool corresponding to the |
| 58 | // left mouse button by default |
| 59 | Qt::MouseButtons buttons = event->buttons(); |
| 60 | if (buttons == Qt::NoButton) |
| 61 | buttons |= Qt::LeftButton; |
| 62 | |
| 63 | if (_parent) |
| 64 | _parent->maybeArmTool(buttons | event->modifiers()); |
| 65 | } |
| 66 | |
| 67 | |
| 68 | // ZoomIn |
nothing calls this directly
no test coverage detected