mirror of https://github.com/CGAL/cgal
Highlight follows selection
This commit is contained in:
parent
9d6953f526
commit
08a43c05f7
|
|
@ -581,10 +581,14 @@ protected:
|
||||||
viewer->setFocus();
|
viewer->setFocus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_lasso_active)
|
if(!is_lasso_active)
|
||||||
{
|
{
|
||||||
is_ready_to_paint_select = true;
|
is_ready_to_paint_select = true;
|
||||||
QMouseEvent* mouse_event = static_cast<QMouseEvent*>(event);
|
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();
|
paint_pos = mouse_event->pos();
|
||||||
if(!is_edit_mode || event->type() == QEvent::MouseButtonPress)
|
if(!is_edit_mode || event->type() == QEvent::MouseButtonPress)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue