+ /* CAUTION: no check is done if the block has connected interface
+ or not. Thus, they must be deleted elsewhere.
+ */
+ blocks.removeAll(block);
+ delete block;
+}
+
+AbstractBlock *GroupBlock::getFunctionalBlockByName(QString name) {
+ foreach(AbstractBlock* block, blocks) {
+ if (block->isFunctionalBlock()) {
+ if (block->getName() == name) return block;
+ }
+ }
+ return NULL;