Highlight follows selection

This commit is contained in:
Maxime Gimeno 2019-04-24 13:03:04 +02:00
parent 9d6953f526
commit 08a43c05f7
1 changed files with 4 additions and 0 deletions

View File

@ -581,10 +581,14 @@ protected:
viewer->setFocus();
return false;
}
if(!is_lasso_active)
{
is_ready_to_paint_select = true;
QMouseEvent* mouse_event = static_cast<QMouseEvent*>(event);
hl_pos = mouse_event->pos();
is_ready_to_highlight = !cut_highlighting;
QTimer::singleShot(0, this, SLOT(highlight()));
paint_pos = mouse_event->pos();
if(!is_edit_mode || event->type() == QEvent::MouseButtonPress)
{