GroupInterface *groupIface = new GroupInterface(groupBlock,name,direction,purpose);
groupBlock->addInterface(groupIface);
- InterfaceItem *interfaceItem = new InterfaceItem(position,orientation,groupIface,this,params);
+ bool show = false;
+ if ((groupBlock->isTopGroupBlock()) && (purpose == AbstractInterface::Clock)) {
+ show = true;
+ }
+
+ InterfaceItem *interfaceItem = new InterfaceItem(position,orientation,groupIface,this,params,show);
interfaceItem->setId(id);
addInterfaceItem(interfaceItem, false);
groupCtlIface->setAssociatedIface(groupIface);
groupBlock->addInterface(groupCtlIface);
}
- cout << "interface add to " << groupBlock->getName().toStdString() << endl;
+ cout << "interface " << qPrintable(name) << " added to " << groupBlock->getName().toStdString() << endl;
}
}