From 7db74d4f20143ccbaeb82be160ee1370cdf0c053 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 13 Feb 2015 11:26:02 +0200 Subject: [PATCH] We don't need anymore simple curves. First step just hide them. --HG-- branch : feature --- src/app/tools/drawTools/vtoolcut.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/tools/drawTools/vtoolcut.cpp b/src/app/tools/drawTools/vtoolcut.cpp index 7eefbc110..dabc5deb3 100644 --- a/src/app/tools/drawTools/vtoolcut.cpp +++ b/src/app/tools/drawTools/vtoolcut.cpp @@ -47,11 +47,14 @@ VToolCut::VToolCut(VPattern *doc, VContainer *data, const quint32 &id, const QSt firstCurve->setParentItem(this); connect(firstCurve, &VSimpleCurve::Choosed, this, &VToolCut::CurveChoosed); connect(firstCurve, &VSimpleCurve::HoverPath, this, &VToolCut::HoverPath); + // TODO: Now we only hide simple curves, but in future need totally delete them all. + firstCurve->setVisible(false); secondCurve = new VSimpleCurve(curve2id, QColor(lineColor), SimpleCurvePoint::FirstPoint, &factor); secondCurve->setParentItem(this); connect(secondCurve, &VSimpleCurve::Choosed, this, &VToolCut::CurveChoosed); connect(secondCurve, &VSimpleCurve::HoverPath, this, &VToolCut::HoverPath); + secondCurve->setVisible(false); } //---------------------------------------------------------------------------------------------------------------------