[Uml-devel] kdesdk/umbrello/umbrello/diagram

Luis De la Parra Blum lparrab at gmx.net
Wed Mar 5 17:15:03 UTC 2003


CVS commit by luis: 

added umlObject() to get a hold of the object represented by this widget

inline a couple of functions


  M +0 -8      umlwidget.cpp   1.3
  M +9 -2      umlwidget.h   1.2


--- kdesdk/umbrello/umbrello/diagram/umlwidget.h  #1.1:1.2
@@ -22,7 +22,9 @@ public:
         virtual ~UMLWidget();
         
-        uint width() const;
+        inline UMLObject* umlObject( ) const;
         
-        uint height() const;
+        inline uint width() const;
+        
+        inline uint height() const;
         
         virtual QPointArray areaPoints() const;
@@ -49,4 +51,9 @@ protected:
 
 };
+
+//inline functions
+UMLObject* UMLWidget::umlObject() const { return m_umlObject;}
+uint UMLWidget::width() const  { return m_width;  }
+uint UMLWidget::height() const { return m_height; }
 
 } //end of namespace Umbrello

--- kdesdk/umbrello/umbrello/diagram/umlwidget.cpp  #1.2:1.3
@@ -23,13 +23,5 @@ UMLWidget::~UMLWidget()
 }
 
-uint UMLWidget::width() const
-{
-        return m_width;
-}
 
-uint UMLWidget::height() const
-{
-        return m_height;
-}
 
 QPointArray UMLWidget::areaPoints() const






More information about the umbrello-devel mailing list