From e937c803a08cf40346d6f99745c608623cc265f4 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Mon, 20 Jun 2016 15:14:07 +0200 Subject: [PATCH] Removes the Hover events in edition mode. --- .../demo/Polyhedron/Scene_polyhedron_item_k_ring_selection.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_k_ring_selection.h b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_k_ring_selection.h index f8a59a0b781..bdc0899870f 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_k_ring_selection.h +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_k_ring_selection.h @@ -318,7 +318,8 @@ protected: is_ready_to_paint_select = true; QMouseEvent* mouse_event = static_cast(event); paint_pos = mouse_event->pos(); - QTimer::singleShot(0,this,SLOT(paint_selection())); + if(!is_edit_mode || event->type() == QEvent::MouseButtonPress) + QTimer::singleShot(0,this,SLOT(paint_selection())); } //if in edit_mode and the mouse is moving without left button pressed : // highlight the primitive under cursor