[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Tue Aug 26 06:07:58 UTC 2003


CVS commit by jriddell: 

Fix the second half of bug 63115 Sequence diagram message arrow
Vertical lines are now extended when you resize the synchronous message arrow.


  M +4 -2      messagewidget.cpp   1.14


--- kdesdk/umbrello/umbrello/messagewidget.cpp  #1.13:1.14
@@ -200,4 +200,5 @@ void MessageWidget::calculateWidget() {
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void MessageWidget::slotWidgetMoved(int id) {
+        kdDebug() << k_funcinfo << endl;
         if(m_pWA -> getID() == id || m_pWB -> getID() == id) {
                 m_nY = (int)y();
@@ -401,11 +402,12 @@ void MessageWidget::mouseMoveEvent(QMous
                 int heightB = (int)((ObjectWidget*)m_pWB) -> getEndLineY();
                 int height = heightA;
-                if( heightA > heightB )
+                if ( heightA > heightB )  {
                         height = heightB;
+                }
                 moveY = (int)me -> y() - m_nPressOffsetY - m_nOldY;
                 newY = m_nOldH + moveY;
                 newY = newY < 20 ? 20 : newY;
-                newY = newY > height - (int)y()? height - (int)y() : newY;
                 setSize( width(), newY );
+                emit sigMessageMoved();
                 return;
         }






More information about the umbrello-devel mailing list