[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue Oct 4 14:15:14 UTC 2005


SVN commit 467300 by okellogg:

The 'mnemonic' arg of Uml::Visibility::toString() defaults to false.
Thanks to Peter Soetens for spotting the problem at
http://sourceforge.net/mailarchive/forum.php?thread_id=8402556&forum_id=472


 M  +5 -5      associationwidget.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/associationwidget.cpp #467299:467300
@@ -395,8 +395,8 @@
         m_role[role].m_pRole = new FloatingText(m_pView, tr, strRole);
         m_role[role].m_pRole->setLink(this);
         m_pView->addWidget(m_role[role].m_pRole);
-        Uml::Visibility scope = getVisibility(role);
-        m_role[role].m_pRole->setPreText(scope.toString());
+        Uml::Visibility vis = getVisibility(role);
+        m_role[role].m_pRole->setPreText(vis.toString(true));
     } else {
         if (m_role[role].m_pRole->getText().isEmpty()) {
             newLabel = true;
@@ -459,7 +459,7 @@
     m_role[role].m_Visibility = value;
     // update role pre-text attribute as appropriate
     if (m_role[role].m_pRole) {
-        QString scopeString = value.toString();
+        QString scopeString = value.toString(true);
         m_role[role].m_pRole->setPreText(scopeString);
     }
 }
@@ -581,8 +581,8 @@
             robj.m_pRole->setLink(this);
             Text_Role tr = (r == A ? tr_RoleAName : tr_RoleBName);
             robj.m_pRole->setRole(tr);
-            Uml::Visibility scope = getVisibility((Role_Type)r);
-            robj.m_pRole->setPreText(scope.toString());
+            Uml::Visibility vis = getVisibility((Role_Type)r);
+            robj.m_pRole->setPreText(vis.toString(true));
 
             if (FloatingText::isTextValid(robj.m_pRole->getText()))
                 robj.m_pRole -> show();




More information about the umbrello-devel mailing list