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

Ralf Habacker ralf.habacker at gmail.com
Thu Mar 29 18:40:46 UTC 2012


SVN commit 1287576 by habacker:

Reordered methods to reduce differences to trunk. 


 M  +8 -8      umlview.cpp  
 M  +3 -3      umlview.h  


--- branches/work/soc-umbrello/umbrello/umlview.cpp #1287575:1287576
@@ -48,6 +48,14 @@
 }
 
 /**
+ * Getter for the scene.
+ */
+UMLScene* UMLView::umlScene() const
+{
+    return qobject_cast<UMLScene*>(scene());
+}
+
+/**
  * Sets the zoom of the diagram.
  */
 void UMLView::setZoom(int zoom)
@@ -290,14 +298,6 @@
 }
 
 /**
- * Getter for the scene.
- */
-UMLScene* UMLView::umlScene() const
-{
-    return qobject_cast<UMLScene*>(scene());
-}
-
-/**
  * Overrides standard method from QWidget to resize canvas when
  * it's shown.
  */
--- branches/work/soc-umbrello/umbrello/umlview.h #1287575:1287576
@@ -36,6 +36,7 @@
     UMLView(UMLFolder *f );
     virtual ~UMLView();
 
+    UMLScene* umlScene() const;
     int zoom() const { return m_nZoom; }
     void setZoom(int zoom);
     int currentZoom();
@@ -43,16 +44,15 @@
     void hideEvent(QHideEvent *he);
     void showEvent(QShowEvent *se);
 
-    UMLScene* umlScene() const;
 
+
 protected:
-    void closeEvent(QCloseEvent * e);
-
     void setCenter(const QPointF& centerPoint);
     QPointF center();
 
     virtual void wheelEvent(QWheelEvent* event);
     virtual void resizeEvent(QResizeEvent* event);
+    void closeEvent(QCloseEvent * e);
 
     QPointF m_currentCenterPoint;  ///< holds the current centerpoint for the view, used for panning and zooming
     QPoint  m_lastPanPoint;        ///< from panning the view




More information about the umbrello-devel mailing list