}
}
} else {
- GeneralPurposeCon *generalCon = new GeneralPurposeCon(this, keyList,
- QSize(conForm->getCenteralRect().width(),
- conForm->getCenteralRect().height() -
- (GPC_HEAD_SPACING + GPC_TAIL_SPACING)));
+ QSize conSize(conForm->getCenteralRect().width(),
+ conForm->getCenteralRect().height() - (GPC_HEAD_SPACING + GPC_TAIL_SPACING));
- QPoint topLeft = conForm->getCenteralRect().topLeft();
- generalCon->move(topLeft.x(), topLeft.y() + GPC_HEAD_SPACING);
+ GeneralPurposeCon *generalCon =
+ new GeneralPurposeCon(parentWidget(), keyList, conSize);
+
+ generalCon->resize(conSize);
+ const QPoint topLeft = conForm->getCenteralRect().topLeft();
+ generalCon->move(topLeft.x(), topLeft.y() + GPC_HEAD_SPACING);
}
}