[Uml-devel] [Bug 69244] "role A properties" should give class name
Daniel Calviño Sánchez
danxuliu at gmail.com
Fri Sep 1 15:12:26 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=69244
danxuliu gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From danxuliu gmail com 2006-09-01 17:12 -------
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 );
More information about the umbrello-devel
mailing list