From 20e4ab1980c918771415447c9a0f3d7304234b49 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 29 Nov 2017 15:58:58 +0200 Subject: [PATCH] Fix selecting piece labels and grainline. --HG-- branch : develop --- src/libs/vtools/tools/vtoolseamallowance.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index aa3ba2f5b..5712aa289 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -1274,8 +1274,9 @@ VToolSeamAllowance::VToolSeamAllowance(const VToolSeamAllowanceInitData &initDat { VPiece detail = initData.data->GetPiece(initData.id); ReinitInternals(detail, m_sceneDetails); - this->setFlag(QGraphicsItem::ItemIsMovable, true); - this->setFlag(QGraphicsItem::ItemIsSelectable, true); + AllowSelecting(true); + EnableToolMove(true); + AllowHover(true); RefreshGeometry(); this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);