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

Gopala Krishna A krishna.ggk at gmail.com
Tue Sep 2 19:32:32 UTC 2008


SVN commit 856397 by gopala:

Removed margin() code from statewidget and usecase widget as
TextItemGroup handles it anyway.



 M  +1 -2      statewidget.cpp  
 M  +1 -2      usecasewidget.cpp  


--- branches/work/soc-umbrello/umbrello/statewidget.cpp #856396:856397
@@ -304,8 +304,7 @@
 {
 	if(change == SizeHasChanged && m_stateType == StateWidget::Normal) {
 		TextItemGroup *grp = textItemGroupAt(GroupIndex);
-		const qreal m = margin();
-		grp->setGroupGeometry(rect().adjusted(+m, +m, -m, -m));
+		grp->setGroupGeometry(rect());
 
 		// line after each "line of text" except for the last one
 		// as it is unnecessary to draw line on round rect.
--- branches/work/soc-umbrello/umbrello/usecasewidget.cpp #856396:856397
@@ -81,8 +81,7 @@
 {
 	if(change == SizeHasChanged) {
 		TextItemGroup *grp = textItemGroupAt(GroupIndex);
-		const qreal m = margin();
-		grp->setGroupGeometry(rect().adjusted(+m, +m, -m, -m));
+		grp->setGroupGeometry(rect());
 	}
 	return NewUMLRectWidget::attributeChange(change, oldValue);
 }




More information about the umbrello-devel mailing list