[Uml-devel] branches/work/soc-umbrello/umbrello

Gopala Krishna A krishna.ggk at gmail.com
Tue Sep 2 18:33:02 UTC 2008


SVN commit 856376 by gopala:

NodeWidget: Removed margin code.



 M  +1 -4      nodewidget.cpp  


--- branches/work/soc-umbrello/umbrello/nodewidget.cpp #856375:856376
@@ -72,8 +72,7 @@
 	TextItemGroup *grp = textItemGroupAt(GroupIndex);
 	QSizeF minSize = grp->minimumSize();
 
-	const qreal m = 2 * margin(); // This will be added by setMinimumSize call
-	minSize += QSizeF(m, m) + QSizeF(NodeWidget::DEPTH, NodeWidget::DEPTH);
+	minSize += QSizeF(NodeWidget::DEPTH, NodeWidget::DEPTH);
 
 	setMinimumSize(minSize);
 
@@ -125,7 +124,6 @@
 		TextItemGroup *grp = textItemGroupAt(GroupIndex);
 		m_nodeWidgetPath = QPainterPath(); // reset path
 
-		const qreal m = margin();
 		const qreal w = size().width();
 		const qreal h = size().height();
 		const qreal wDepth = qMin(w/3, NodeWidget::DEPTH);
@@ -151,7 +149,6 @@
 		m_nodeWidgetPath.moveTo(line.p1());
 		m_nodeWidgetPath.lineTo(line.p2());
 
-		bodyRect.adjust(+m, +m, -m, -m);
 		grp->setGroupGeometry(bodyRect);
 	}
 




More information about the umbrello-devel mailing list