From 5837ad186644bd33469c2ce45c958d75e24d66f7 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 5 Sep 2014 11:35:32 +0300 Subject: [PATCH] Show options base point of new pattern piece after creation. --HG-- branch : feature --- src/app/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index bd4121e9e..d07ce9f11 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -195,10 +195,12 @@ void MainWindow::ActionNewPP() pattern->ClearGObjects(); //Create single point + ui->view->itemClicked(nullptr);//hide options previous tool QString label = doc->GenerateLabel(LabelType::NewPatternPiece); const quint32 id = pattern->AddGObject(new VPointF(30+comboBoxDraws->count()*5, 40, label, 5, 10)); VToolSinglePoint *spoint = new VToolSinglePoint(doc, pattern, id, Source::FromGui, patternPieceName, path); sceneDraw->addItem(spoint); + ui->view->itemClicked(spoint); connect(spoint, &VToolPoint::ChoosedTool, sceneDraw, &VMainGraphicsScene::ChoosedItem); connect(sceneDraw, &VMainGraphicsScene::NewFactor, spoint, &VToolSinglePoint::SetFactor); QHash* tools = doc->getTools();