QPointF initPos = QPointF(0.0,0.0) - originPoint;
setPos(initPos);
cout << "total size of group: " << totalWidth << "," << totalHeight << endl;
QPointF initPos = QPointF(0.0,0.0) - originPoint;
setPos(initPos);
cout << "total size of group: " << totalWidth << "," << totalHeight << endl;
QPointF oldOrigin = originPoint;
QSize oldSize(totalWidth,totalHeight);
QPointF oldOrigin = originPoint;
QSize oldSize(totalWidth,totalHeight);
if (boxWidth < minimumBoxWidth) {
boxWidth = minimumBoxWidth;
boxSizeChanged = true;
}
if (boxHeight < minimumBoxHeight) {
boxHeight = minimumBoxHeight;
if (boxWidth < minimumBoxWidth) {
boxWidth = minimumBoxWidth;
boxSizeChanged = true;
}
if (boxHeight < minimumBoxHeight) {
boxHeight = minimumBoxHeight;
// update connection from/to the selected interface
foreach(ConnectionItem *item, getScene()->getConnectionItems()){
if ((item->getFromInterfaceItem() == currentInterface) || (item->getToInterfaceItem() == currentInterface)) {
// update connection from/to the selected interface
foreach(ConnectionItem *item, getScene()->getConnectionItems()){
if ((item->getFromInterfaceItem() == currentInterface) || (item->getToInterfaceItem() == currentInterface)) {