Skip to content

Commit

Permalink
Remove extra timer shots when moving selection with keyboard (flamesh…
Browse files Browse the repository at this point in the history
…ot-org#2545)

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
(cherry picked from commit 03af9d8)
  • Loading branch information
veracioux authored and Yuriy Puchkov committed May 13, 2022
1 parent 60e3b6e commit f8c6bc0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/widgets/capture/selectionwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,10 @@ void SelectionWidget::setGeometryByKeyboard(const QRect& r)
rect.setHeight(1);
}
setGeometry(rect);
connect(
&timer,
&QTimer::timeout,
this,
[this]() { emit geometrySettled(); },
Qt::UniqueConnection);
connect(&timer,
&QTimer::timeout,
this,
&SelectionWidget::geometrySettled,
Qt::UniqueConnection);
timer.start(400);
}

0 comments on commit f8c6bc0

Please sign in to comment.