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

Andi Fischer andi.fischer at hispeed.ch
Mon Sep 24 21:55:44 UTC 2012


SVN commit 1317631 by fischer:

Attribute m_scene removed.

 M  +2 -1      umlview.cpp  
 M  +0 -1      umlview.h  


--- branches/work/soc-umbrello/umbrello/umlview.cpp #1317630:1317631
@@ -49,10 +49,11 @@
 
 /**
  * Getter for the scene.
+ * TODO: Should be removed. Use scene() instead.
  */
 UMLScene* UMLView::umlScene() const
 {
-    return m_scene;
+    return static_cast<UMLScene*>(scene());
 }
 
 /**
--- branches/work/soc-umbrello/umbrello/umlview.h #1317630:1317631
@@ -55,7 +55,6 @@
 	void setCenter(const QPointF& centerPoint);
     QPointF center();
 
-    UMLScene *m_scene;  ///< pointer to scene
     QPointF m_currentCenterPoint;  ///< holds the current centerpoint for the view, used for panning and zooming
     QPoint  m_lastPanPoint;        ///< from panning the view
     int m_nZoom;        ///< zoom level in percent, default 100




More information about the umbrello-devel mailing list