[Uml-devel] KDE/kdesdk/umbrello/umbrello

Sharan Rao sharanrao at gmail.com
Fri Jul 20 20:59:46 UTC 2007


SVN commit 690374 by sharan:

What should be the desired behaviour when one clicks on "Expand All" or "Collapse All" ?
This commit includes the listviewitem as part of the expansion or collapse. 
I assumed this is the appropriate thing after I did some *cough* congition *cough* tests on some friends :P

Please revert if this is not the desired behaviour.



 M  +2 -0      umllistview.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #690373:690374
@@ -2763,6 +2763,7 @@
 /** Open all items in the list view*/
 void UMLListView::expandAll(Q3ListViewItem *item) {
     if(!item) item = firstChild();
+    item->setOpen(true);
     for (item = item->firstChild(); item; item = item->nextSibling())  {
         item->setOpen(true);
     }
@@ -2770,6 +2771,7 @@
 /** Close all items in the list view*/
 void UMLListView::collapseAll(Q3ListViewItem *item) {
     if(!item) item = firstChild();
+    item->setOpen(false);
     for( item = item->firstChild(); item; item = item->nextSibling())
         item->setOpen(false);
 }




More information about the umbrello-devel mailing list