From e3fdad132139a9afff88a6b0eee536b6c0e7d699 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 1 Mar 2017 07:10:04 +0200 Subject: [PATCH] Update grainline after selecting each type. --HG-- branch : feature --- src/libs/vwidgets/vgrainlineitem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/vwidgets/vgrainlineitem.cpp b/src/libs/vwidgets/vgrainlineitem.cpp index c0299ddb1..5efa644c9 100644 --- a/src/libs/vwidgets/vgrainlineitem.cpp +++ b/src/libs/vwidgets/vgrainlineitem.cpp @@ -299,11 +299,17 @@ void VGrainlineItem::mousePressEvent(QGraphicsSceneMouseEvent* pME) m_eMode = mMove; SetOverrideCursor(cursorArrowCloseHand, 1, 1); } + + setZValue(ACTIVE_Z); + Update(); } else if (m_moveType == OnlyMovable) { m_eMode = mMove; SetOverrideCursor(cursorArrowCloseHand, 1, 1); + + setZValue(ACTIVE_Z); + Update(); } else {