| 123 | } |
| 124 | |
| 125 | void AnnotationTool::cancelAnnotation() { |
| 126 | if (_generating) { |
| 127 | _annotationPlugin->finishAnnotation(true); |
| 128 | _start = Point(-1, -1); |
| 129 | _last = _start; |
| 130 | _generating = false; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | void AnnotationTool::mousePressEvent(QMouseEvent *event) { |
| 135 | if (_viewer) { |
no test coverage detected