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

Gopala Krishna A krishna.ggk at gmail.com
Sat Aug 30 09:55:00 UTC 2008


SVN commit 854766 by gopala:

* Enabled selection of multiple widgets on the diagram by drawing selection rect.

* Corrected the view's anchoring of scene by setting an appropriate
  scene rect for the view. Before this, the scene was anchored in the
  center of view.



 M  +5 -1      umlview.cpp  


--- branches/work/soc-umbrello/umbrello/umlview.cpp #854765:854766
@@ -22,9 +22,13 @@
     m_nZoom = 100;
     setAcceptDrops(true);
     setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
+
+    setDragMode(RubberBandDrag);
     // [PORT] For now the following is used. Shd check for creation of
     // new scene later.
-    setScene(new UMLScene(f));
+    UMLScene *scene = new UMLScene(f);
+    setScene(scene);
+    setSceneRect(scene->sceneRect());
 }
 
 UMLView::~UMLView()




More information about the umbrello-devel mailing list