X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..718736f825077e345ad396f78735c10e21547982:/GroupWidget.cpp diff --git a/GroupWidget.cpp b/GroupWidget.cpp index 1446a13..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,13 +223,8 @@ void GroupWidget::updateBlockButton() { void GroupWidget::slotNewEmptyGroup() { - // creating the GroupBlock in graph model - GroupBlock* groupBlock = params->addGroupBlock(); - // creating the BlockItem in the inner scene - BoxItem* block = new BoxItem(groupBlock, dispatcher, params, scene->getGroupItem()); + dispatcher->addNewEmptyGroup(scene); - GroupWidget* child = dispatcher->createChildScene(this,block); - child->show(); } void GroupWidget::slotNewGroup()