1 Jan 2005 14:59
kdesdk/umbrello/umbrello
Oliver Kellogg <okellogg <at> users.sourceforge.net>
2005-01-01 13:59:29 GMT
2005-01-01 13:59:29 GMT
CVS commit by okellogg:
Save changeability in XMI standard compliant format.
M +8 -7 umlrole.cpp 1.36
--- kdesdk/umbrello/umbrello/umlrole.cpp #1.35:1.36
<at> <at> -174,12 +174,11 <at> <at> void UMLRole::saveToXMI( QDomDocument &
switch (m_Changeability) {
case Uml::chg_Frozen:
- roleElement.setAttribute("changeable", "frozen");
+ roleElement.setAttribute("changeability", "frozen");
break;
case Uml::chg_AddOnly:
- roleElement.setAttribute("changeable", "addOnly");
+ roleElement.setAttribute("changeability", "addOnly");
break;
case Uml::chg_Changeable:
- // This is the default.
- // roleElement.setAttribute("changeable", "none");
+ roleElement.setAttribute("changeability", "changeable");
break;
}
<at> <at> -343,8 +342,10 <at> <at> bool UMLRole::load( QDomElement & elemen
// Changeability defaults to Changeable if it cant set it here..
m_Changeability = Uml::chg_Changeable;
- QString changeable = element.attribute("changeable", "none");
- if (changeable == "frozen")
+ QString changeability = element.attribute("changeability", "");
+ if (changeability.isEmpty())
(Continue reading)
RSS Feed