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

Gopala Krishna A krishna.ggk at gmail.com
Sun Aug 16 09:31:40 UTC 2009


SVN commit 1011880 by gopala:

Slightly corrected the CombinedFragmentWidget's type box.



 M  +4 -1      combinedfragmentwidget.cpp  


--- branches/work/soc-umbrello/umbrello/widgets/combinedfragmentwidget.cpp #1011879:1011880
@@ -335,6 +335,8 @@
 void CombinedFragmentWidget::updateTextItemGroups()
 {
     TextItemGroup *grp = textItemGroupAt(TypeBoxIndex);
+    grp->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
+    grp->setMargin(0);
     TextItemGroup *nameGroup = textItemGroupAt(ReferenceDiagramNameBoxIndex);
 
     grp->setTextItemCount(FirstAlternativeItemIndex + 1);
@@ -434,7 +436,8 @@
 {
     if (change == SizeHasChanged) {
         TextItemGroup *typeGroup  = textItemGroupAt(TypeBoxIndex);
-        const QSizeF typeGroupMinSize = typeGroup->minimumSize();
+        QSizeF typeGroupMinSize = typeGroup->minimumSize();
+        typeGroupMinSize.rwidth() /= 0.6;
         typeGroup->setGroupGeometry(QRectF(QPointF(0, 0), typeGroupMinSize));
 
         // Calculate lines only if the group has text items in it.




More information about the umbrello-devel mailing list