[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Jan 29 22:31:01 UTC 2006
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) {
More information about the umbrello-devel
mailing list