[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Oct 2 15:01:50 UTC 2004


CVS commit by okellogg: 

Take out obsolete debugging kludge.


  M +1 -7      linepath.cpp   1.33
  M +3 -14     umlwidget.cpp   1.105


--- kdesdk/umbrello/umbrello/linepath.cpp  #1.32:1.33
@@ -460,4 +460,5 @@ void LinePath::setupSelected() {
         rect -> setVisible( true );
         m_RectList.append( rect );
+        update();
 }
 
@@ -469,12 +470,5 @@ QPen LinePath::getPen() {
 }
 
-#ifdef DEBUG_ASSOCLINES
-extern int calls_to_calc_head;
-#endif
-
 void LinePath::calculateHead() {
-#ifdef DEBUG_ASSOCLINES
-        calls_to_calc_head++;
-#endif
         uint size = m_LineList.count();
         QPoint farPoint;

--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.104:1.105
@@ -184,5 +184,4 @@ Uml::IDType UMLWidget::getID() const {
 }
 
-////////////////////////////////////////////////////////////////////////////////////////////////////
 QPoint UMLWidget::doMouseMove(QMouseEvent* me) {
         int newX = 0, newY = 0, count;
@@ -241,8 +240,4 @@ QPoint UMLWidget::doMouseMove(QMouseEven
         return QPoint(newX, newY);
 }
-////////////////////////////////////////////////////////////////////////////////////////////////////
-#ifdef DEBUG_ASSOCLINES
-int calls_to_calc_head;
-#endif
 
 void UMLWidget::mouseMoveEvent(QMouseEvent* me) {
@@ -257,12 +252,6 @@ void UMLWidget::mouseMoveEvent(QMouseEve
                 setY( newY );
                 if (lastUpdate.elapsed() > 25) {
-#ifdef DEBUG_ASSOCLINES
-                        calls_to_calc_head = 0;
-#endif
                         //adjustAssocs(newX, newY);
                         adjustUnselectedAssocs(newX, newY);
-#ifdef DEBUG_ASSOCLINES
-                        kdDebug() << "calls_to_calc_head = " << calls_to_calc_head << endl;
-#endif
                         m_pView->resizeCanvasToItems();
                         lastUpdate.restart();
@@ -270,5 +259,5 @@ void UMLWidget::mouseMoveEvent(QMouseEve
         }
 }
-////////////////////////////////////////////////////////////////////////////////////////////////////
+
 void UMLWidget::mousePressEvent(QMouseEvent *me) {
         m_nOldX = getX();
@@ -336,5 +325,5 @@ void UMLWidget::mousePressEvent(QMouseEv
         }
 }
-////////////////////////////////////////////////////////////////////////////////////////////////////
+
 void UMLWidget::updateWidget()
 {
@@ -379,5 +368,5 @@ void UMLWidget::mouseReleaseEvent(QMouse
         }
 }
-////////////////////////////////////////////////////////////////////////////////////////////////////
+
 void UMLWidget::init() {
         m_nId = Uml::id_None;






More information about the umbrello-devel mailing list