[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdesdk/umbrello/umbrello
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2006-01-30 6:30:00
Message-ID: 1138602600.503566.5373.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 503737 by okellogg:

calculateTextPosition(atBottom, atTop): forgot that we are in the Qt coordinate system

 M  +4 -4      associationwidget.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/associationwidget.cpp #503736:503737
@@ -1723,7 +1723,7 @@
     // is at top or bottom edge of widget.
     bool is_top_or_bottom(false);
     UMLWidget *pWidget(0);
-        
+
     if (role == tr_MultiA || role == tr_ChangeA || role == tr_RoleAName) {
         p = m_LinePath.getPoint( 0 );
         q = m_LinePath.getPoint( 1 );
@@ -1753,11 +1753,11 @@
 
     if (role == tr_MultiA || role == tr_MultiB) {
         const bool isHorizontal = (p.y() == q.y());
-        const int atTop = p.y() + SPACE;
-        const int atBottom = p.y() - SPACE - textH;
+        const int atBottom = p.y() + SPACE;
+        const int atTop = p.y() - SPACE - textH;
         const int atLeft = p.x() - SPACE - textW;
         const int atRight = p.x() + SPACE;
-        y = (p.y() > q.y()) == isHorizontal ? atTop : atBottom;
+        y = (p.y() > q.y()) == isHorizontal ? atBottom : atTop;
         x = (p.x() < q.x()) == isHorizontal ? atRight : atLeft;
 
     } else if (role == tr_ChangeA || role == tr_ChangeB) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic