[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Aug 14 08:37:06 UTC 2005
SVN commit 449174 by okellogg:
Use UMLObject::getFullyQualifiedName().
M +1 -1 datatypewidget.cpp
M +2 -2 enumwidget.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/datatypewidget.cpp #449173:449174
@@ -90,7 +90,7 @@
//now set the width of the concept
//set width to name to start with
//set width to name to start with
- width = getFontMetrics(FT_BOLD_ITALIC).boundingRect(m_pObject->getPackage() + "." + getName()).width();
+ width = getFontMetrics(FT_BOLD_ITALIC).boundingRect(m_pObject->getFullyQualifiedName()).width();
int w = getFontMetrics(FT_BOLD).boundingRect(m_pObject->getStereotype()).width();
width = w > width?w:width;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/enumwidget.cpp #449173:449174
@@ -66,7 +66,7 @@
int fontHeight = fm.lineSpacing();
QString name;
if ( m_bShowPackage ) {
- name = m_pObject -> getPackage() + "." + this -> getName();
+ name = m_pObject->getFullyQualifiedName();
} else {
name = this -> getName();
}
@@ -144,7 +144,7 @@
//now set the width of the concept
//set width to name to start with
if (m_bShowPackage) {
- width = getFontMetrics(FT_BOLD_ITALIC).boundingRect(m_pObject->getPackage() + "." + getName()).width();
+ width = getFontMetrics(FT_BOLD_ITALIC).boundingRect(m_pObject->getFullyQualifiedName()).width();
} else {
width = getFontMetrics(FT_BOLD_ITALIC).boundingRect(getName()).width();
}
More information about the umbrello-devel
mailing list