[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Wed Oct 8 13:09:05 UTC 2003
CVS commit by okellogg:
slotDropped: Call setUMLPackage() on the newItem's UMLObject.
M +10 -0 umllistview.cpp 1.66
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.65:1.66
@@ -959,4 +959,14 @@ void UMLListView::slotDropped(QDropEvent
newItem = move->deepCopy(newParent);
delete move;
+ UMLObject *o = newItem->getUMLObject();
+ if (o == NULL)
+ kdDebug() << "slotDropped: newItem's UMLObject is NULL"
+ << endl;
+ else if (itemType == Uml::lvt_Package)
+ o->setUMLPackage(
+ static_cast<UMLPackage*>(
+ newParent->getUMLObject() ) );
+ else
+ o->setUMLPackage( NULL );
}
break;
More information about the umbrello-devel
mailing list