Summary: | "role A properties" should give class name | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Jonathan Riddell <jr> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Riddell
2003-11-28 22:56:33 UTC
I second that (i.e. was about to file the same report). f SVN commit 579759 by danxuliu: Role properties now also show the name of the widget. BUG: 69244 M +9 -10 assocrolepage.cpp --- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/assocrolepage.cpp #579758:579759 @@ -1,8 +1,3 @@ -/* - * copyright (C) 2003-2004 - * Umbrello UML Modeller Authors <uml-devel@ uml.sf.net> - */ - /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * @@ -10,6 +5,8 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * + * copyright (C) 2003-2006 * + * Umbrello UML Modeller Authors <uml-devel@ uml.sf.net> * ***************************************************************************/ // own header @@ -52,10 +49,12 @@ QString nameB = m_pAssociationWidget->getRoleName(Uml::B); QString titleA = i18n("Role A Properties"); QString titleB = i18n("Role B Properties"); - if(!nameA.isEmpty()) - titleA.append( "("+nameA+")"); - if(!nameB.isEmpty()) - titleB.append( "("+nameB+")"); + QString widgetNameA = m_pAssociationWidget->getWidget(Uml::A)->getName(); + QString widgetNameB = m_pAssociationWidget->getWidget(Uml::B)->getName(); + if(!widgetNameA.isEmpty()) + titleA.append(" (" + widgetNameA + ")"); + if(!widgetNameB.isEmpty()) + titleB.append(" (" + widgetNameB + ")"); // general configuration of the GUI int margin = fontMetrics().height(); @@ -183,7 +182,7 @@ m_ImplementationBRB = new QRadioButton(i18n("Implementation"), scopeBBG); scopeBLayout -> addWidget(m_ImplementationBRB); - + scope = m_pAssociationWidget->getVisibility(Uml::B); if( scope == Uml::Visibility::Public ) m_PublicBRB -> setChecked( true ); |