[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Sep 25 15:28:52 UTC 2004


CVS commit by okellogg: 

Remove m_nOldID  and its accessors.


  M +1 -3      umlwidget.cpp   1.102
  M +0 -19     umlwidget.h   1.39


--- kdesdk/umbrello/umbrello/umlwidget.h  #1.38:1.39
@@ -209,22 +209,4 @@ public:
 
         /**
-         * Returns the old id of the widget.  Used for copy/cut operations.
-         *
-         * @return Returns the old id of the widget.
-         */
-        virtual Uml::IDType getOldID() const {
-                return m_nOldID;
-        }
-
-        /**
-         * Sets the old id of the widget.  Used for copy/cut operations.
-         *
-         * @param _id Sets the old id of the widget.
-         */
-        virtual void setOldID(Uml::IDType _id) {
-                m_nOldID = _id;
-        }
-
-        /**
          * Activate the object after serializing it from a QDataStream
          *
@@ -662,5 +644,4 @@ protected:
                         m_nOldY,
                         m_nPosX;
-        Uml::IDType     m_nOldID;
         ListPopupMenu   *m_pMenu;
         UMLDoc          *m_pDoc;  ///< shortcut for UMLApp::app()->getDocument()

--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.101:1.102
@@ -103,5 +103,4 @@ UMLWidget& UMLWidget::operator=(const UM
         m_nOldY = other.m_nOldY;
         m_nPosX = other.m_nPosX;
-        m_nOldID = other.m_nOldID;
         m_pObject = other.m_pObject;
         m_pView = other.m_pView;
@@ -382,5 +381,5 @@ void UMLWidget::mouseReleaseEvent(QMouse
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void UMLWidget::init() {
-        m_nId = m_nOldID = Uml::id_None;
+        m_nId = Uml::id_None;
         m_bIsInstance = false;
         if (m_pView) {
@@ -422,5 +421,4 @@ void UMLWidget::init() {
         m_pDoc = UMLApp::app()->getDocument();
         m_nPosX = m_nOldX = m_nOldY = 0;
-        m_nOldID = Uml::id_None;
         m_nOldH = m_nOldW = 0;
         connect( m_pView, SIGNAL( sigRemovePopupMenu() ), this, SLOT( slotRemovePopupMenu() ) );






More information about the umbrello-devel mailing list