X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..107509468a60f3e9e698d82a2575b700d9dde07e:/GroupWidget.cpp?ds=inline diff --git a/GroupWidget.cpp b/GroupWidget.cpp index 043561e..2ef7cd1 100644 --- a/GroupWidget.cpp +++ b/GroupWidget.cpp @@ -95,6 +95,7 @@ void GroupWidget::focusInEvent(QFocusEvent *e) { void GroupWidget::closeEvent(QCloseEvent *e) { clearFocus(); focusNextChild(); + } @@ -222,16 +223,8 @@ void GroupWidget::updateBlockButton() { void GroupWidget::slotNewEmptyGroup() { - // creating the GroupBlock in graph model - GroupBlock* parent = AB_TO_GRP(scene->getGroupItem()->getRefBlock()); - cout << "new group : parent = "<< qPrintable(parent->getName()) << endl; - GroupBlock* groupBlock = params->getGraph()->createChildBlock(parent); - cout << "new group : child = "<< qPrintable(groupBlock->getName()) << ", child of " << qPrintable(groupBlock->getParent()->getName()) << endl; - // creating the BlockItem in the scene - BoxItem* newItem = scene->createBlockItem(groupBlock); + dispatcher->addNewEmptyGroup(scene); - GroupWidget* child = dispatcher->createChildScene(this,newItem); - child->show(); } void GroupWidget::slotNewGroup()