[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
Oliver.Kellogg at t-online.de
Wed Sep 10 22:42:14 UTC 2003
CVS commit by okellogg:
{set,get}Id : Use the ID from the m_pObject.
M +4 -0 umlrole.cpp 1.4
--- kdesdk/umbrello/umbrello/umlrole.cpp #1.3:1.4
@@ -45,4 +45,6 @@ UMLObject* UMLRole::getObject() {
int UMLRole::getId() const {
+ if(m_pObject)
+ return m_pObject->getID();
return m_Id;
}
@@ -70,4 +72,6 @@ QString UMLRole::getDoc() const {
void UMLRole::setId(int id) {
m_Id = id;
+ if(m_pObject)
+ m_pObject->setID(id);
emit modified();
}
More information about the umbrello-devel
mailing list