[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Dec 30 02:53:01 UTC 2004
CVS commit by okellogg:
addNewItem(lvt_Template): Use getUniqueChildUMLObjectName().
M +8 -6 umllistview.cpp 1.139
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.138:1.139
@@ -1865,10 +1865,4 @@ void UMLListView::addNewItem( QListViewI
break;
- case Uml::lvt_Template:
- name = getUniqueUMLObjectName( Uml::ot_Template );
- newItem = new UMLListViewItem( parentItem, name, type, (UMLObject*)0 );
- newItem->setPixmap( 0, getPixmap( it_Template ) );
- break;
-
case Uml::lvt_Entity:
name = getUniqueUMLObjectName( Uml::ot_Entity );
@@ -1877,4 +1871,12 @@ void UMLListView::addNewItem( QListViewI
break;
+ case Uml::lvt_Template:
+ {
+ UMLClassifier *parent = static_cast<UMLClassifier*>(parentItem->getUMLObject());
+ name = getUniqueChildUMLObjectName(parent, Uml::ot_Template);
+ newItem = new UMLListViewItem( parentItem, name, type, (UMLObject*)0 );
+ newItem->setPixmap( 0, getPixmap( it_Template ) );
+ break;
+ }
case Uml::lvt_Attribute:
{
More information about the umbrello-devel
mailing list