[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Sep 18 07:33:01 UTC 2004


CVS commit by okellogg: 

moveBy(): New.


  M +4 -2      umlwidget.cpp   1.99
  M +7 -0      umlwidget.h   1.38


--- kdesdk/umbrello/umbrello/umlwidget.h  #1.37:1.38
@@ -332,4 +332,10 @@ public:
 
         /**
+         * Move the widget by an X and Y offseti relative to
+         * the current position.
+         */
+        void moveBy(int dx, int dy);
+
+        /**
          * Removes an already created association from the list of
          * associations that include this UMLWidget

--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.98:1.99
@@ -814,5 +812,9 @@ bool UMLWidget::onWidget(const QPoint & 
         return ( x() <= p.x() && x() + width() >= p.x() &&
                  y() <= p.y() && y() + height() >= p.y() );
+}
 
+void UMLWidget::moveBy(int dx, int dy) {
+        setX(getX() + dx);
+        setY(getY() + dy);
 }
 






More information about the umbrello-devel mailing list