void GroupWidget::closeEvent(QCloseEvent *e) {
clearFocus();
focusNextChild();
+
}
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()