[Uml-devel] branches/work/soc-umbrello/umbrello
Gopala Krishna A
krishna.ggk at gmail.com
Sat Aug 30 13:22:52 UTC 2008
SVN commit 854864 by gopala:
Chopped explicit margin code from ArticraftWidget as TextItemGroup handles it.
M +2 -5 artifactwidget.cpp
--- branches/work/soc-umbrello/umbrello/artifactwidget.cpp #854863:854864
@@ -124,19 +124,16 @@
if(change == SizeHasChanged) {
UMLArtifact *artifact = static_cast<UMLArtifact*>(umlObject());
TextItemGroup *grp = textItemGroupAt(GroupIndex);
- const qreal m = margin();
const qreal groupHeight = grp->minimumSize().height();
QRectF groupGeometry = rect();
- groupGeometry.adjust(+m, +m, -m, -m);
if (artifact->getDrawAsType() != UMLArtifact::defaultDraw) {
- groupGeometry.setTopLeft(QPointF(m, rect().bottom() - groupHeight - m));
- groupGeometry.setSize(QSizeF(rect().width() - 2 * m, groupHeight));
+ groupGeometry.setTop(groupGeometry.bottom() - groupHeight);
}
grp->setGroupGeometry(groupGeometry);
- m_cachedTextHeight = groupHeight + 2 * m;
+ m_cachedTextHeight = groupHeight;
}
return NewUMLRectWidget::attributeChange(change, oldValue);
More information about the umbrello-devel
mailing list