We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6685a1c commit 07f11c6Copy full SHA for 07f11c6
src/external-macro-modules/opencv/preview-dialog.cpp
@@ -51,11 +51,17 @@ void PreviewDialog::mousePressEvent(QMouseEvent *event)
51
52
void PreviewDialog::mouseMoveEvent(QMouseEvent *event)
53
{
54
+ if (_type == Type::SHOW_MATCH) {
55
+ return;
56
+ }
57
_rubberBand->setGeometry(QRect(_origin, event->pos()).normalized());
58
}
59
60
void PreviewDialog::mouseReleaseEvent(QMouseEvent *)
61
62
63
64
65
auto selectionStart =
66
_rubberBand->mapToGlobal(_rubberBand->rect().topLeft());
67
QRect selectionArea(selectionStart, _rubberBand->size());
0 commit comments