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

Gopala Krishna A krishna.ggk at gmail.com
Tue Aug 12 12:19:24 UTC 2008


SVN commit 845800 by gopala:

WidgetHandle: Handle resizing properly if the widget being resized has parent.



 M  +3 -0      widgethandle.cpp  


--- branches/work/soc-umbrello/umbrello/widgethandle.cpp #845799:845800
@@ -272,6 +272,9 @@
         ; // NOP to prevent compiler warning
     }
 
+    if (m_widget->parentItem()) {
+        newRect.moveTopLeft(m_widget->parentItem()->mapFromScene(newRect.topLeft()));
+    }
     // Apply the geometry change now to the associated widget.
     m_widget->setPos(newRect.topLeft());
     m_widget->setSize(newRect.size());




More information about the umbrello-devel mailing list