[Uml-devel] branches/work/soc-umbrello/umbrello

Andi Fischer andi.fischer at hispeed.ch
Sun Nov 11 11:50:21 UTC 2012


SVN commit 1324840 by fischer:

Differences to trunk reduced.

 M  +0 -1      toolbarstateassociation.cpp  
 M  +4 -4      toolbarstatemessages.cpp  


--- branches/work/soc-umbrello/umbrello/toolbarstateassociation.cpp #1324839:1324840
@@ -188,7 +188,6 @@
     m_pUMLScene->addItem(m_associationLine);
     m_associationLine->setLine(pos.x(), pos.y(), pos.x(), pos.y());
     m_associationLine->setPen(QPen(m_pUMLScene->lineColor(), m_pUMLScene->lineWidth(), Qt::DashLine));
-
     m_associationLine->setVisible(true);
 }
 
--- branches/work/soc-umbrello/umbrello/toolbarstatemessages.cpp #1324839:1324840
@@ -80,7 +80,8 @@
 
     if (m_messageLine) {
         QPointF sp = m_messageLine->line().p1();
-        qreal x = m_pMouseEvent->scenePos().x(), y = m_pMouseEvent->scenePos().y();
+        qreal x = m_pMouseEvent->scenePos().x();
+        qreal y = m_pMouseEvent->scenePos().y();
         m_messageLine->setLine(sp.x(), sp.y(), x, y);
     }
 }
@@ -193,10 +194,10 @@
 
         m_messageLine = new QGraphicsLineItem();
         m_pUMLScene->addItem(m_messageLine);
-        qreal x = m_pMouseEvent->scenePos().x(), y = m_pMouseEvent->scenePos().y();
+        qreal x = m_pMouseEvent->scenePos().x();
+        qreal y = m_pMouseEvent->scenePos().y();
         m_messageLine->setLine(x, y, x, y);
         m_messageLine->setPen(QPen(m_pUMLScene->lineColor(), m_pUMLScene->lineWidth(), Qt::DashLine));
-
         m_messageLine->setVisible(true);
     }
     else {
@@ -230,7 +231,6 @@
         qreal y = m_pMouseEvent->scenePos().y();
         m_messageLine->setLine(x, y, x, y);
         m_messageLine->setPen(QPen(m_pUMLScene->lineColor(), m_pUMLScene->lineWidth(), Qt::DashLine));
-
         m_messageLine->setVisible(true);
     }
 }




More information about the umbrello-devel mailing list