[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Sep 2 17:15:34 UTC 2006
SVN commit 580121 by okellogg:
findUMLObject(): Look in m_datatypeRoot without requiring scope prefix.
M +7 -2 umldoc.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umldoc.cpp #580120:580121
@@ -205,6 +205,7 @@
createDiagram(m_root[mt_Logical], dt_Class, false);
kapp->processEvents();
m_root[mt_Logical]->appendViews(viewList);
+ firstView = viewList.first();
}
if ( firstView )
@@ -717,9 +718,13 @@
UMLObject* UMLDoc::findUMLObject(const QString &name,
Object_Type type /* = ot_UMLObject */,
UMLObject *currentObj /* = NULL */) {
+ UMLObjectList list = m_datatypeRoot->containedObjects();
+ UMLObject *o = Model_Utils::findUMLObject(list, name, type, currentObj);
+ if (o)
+ return o;
for (int i = 0; i < Uml::N_MODELTYPES; i++) {
- UMLObjectList list = m_root[i]->containedObjects();
- UMLObject *o = Model_Utils::findUMLObject(list, name, type, currentObj);
+ list = m_root[i]->containedObjects();
+ o = Model_Utils::findUMLObject(list, name, type, currentObj);
if (o)
return o;
if ((type == ot_UMLObject || type == ot_Folder) &&
More information about the umbrello-devel
mailing list