[Uml-devel] Two patches for Umbrello : color picker/delete item
Yan Morin
yansanmo.site at gmail.com
Wed Mar 1 10:02:02 UTC 2006
Yan Morin wrote:
>
> Second, a patch to implement 'backspace key' or 'delete key' when you
> select items in the listview.
>
Hum, sorry, but I found a flaw in my last patch for multiple delete item.
Exemple: you have two classes, one with attributes
+ ClassA
|- attribute1
|- attribute2
+ ClassB
When you select with shift, ClassA and ClassB, Qt select Class A,
ClassB, and attribute1, attribute2 automatically even if you don't see
it when it's not expanded. Also, when you use deleteItem(), it erases
ClassA and attribute1, attribute2. So the iterator in the selected item
loop are not good anymore, and crash happens.
I don't see a way to handle it right now... In other case (without
subitems), it was working so great...
--
Yan Morin
http://yansanmo.no-ip.org/
More information about the umbrello-devel
mailing list