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

Andi Fischer andi.fischer at hispeed.ch
Sat Mar 13 09:02:29 UTC 2010


SVN commit 1102673 by fischer:

Improves the class operation shrinking.

 M  +1 -1      textitemgroup.cpp  
 M  +5 -0      widgets/classifierwidget.cpp  


--- branches/work/soc-umbrello/umbrello/textitemgroup.cpp #1102672:1102673
@@ -164,7 +164,7 @@
     QSizeF minSize = minimumSize();
 
     if(rect.width() < minSize.width() || rect.height() < minSize.height()) {
-        uDebug() << "Size of group less then minimum size\n"
+        uDebug() << "Size of group less then minimum size"  << endl
                  << "Min size" << minSize << endl
                  << "Cur size" << rect.size();
 
--- branches/work/soc-umbrello/umbrello/widgets/classifierwidget.cpp #1102672:1102673
@@ -489,6 +489,7 @@
 
     }
     setMinimumSize(totalMinSize, sizeHintOption);
+    setSize(totalMinSize);  //:fischer:
     UMLWidget::updateGeometry();
 }
 
@@ -597,6 +598,10 @@
                 expanderDistance;
             m_operationExpanderBox->setPos(expanderX, y);
         }
+        if (InvalidIndex == m_lineItem2Index) {  // attributes and operations invisible   //:fischer:
+            QPointF pos = m_attributeExpanderBox->pos();
+            m_operationExpanderBox->setPos(pos.x(), pos.y() + 12);
+        }
     }
 }
 




More information about the umbrello-devel mailing list