[Uml-devel] Fix for ListView Drag & Drop

Paul Hensgen phensgen at dingoblue.net.au
Tue Jan 15 18:54:02 UTC 2002


Hi,

Great.

Please put into cvs.  I am moving and won't have internet access until the
end of March, except for e-mail which I can do at Uni.

Thanks.

Paul Hensgen
----- Original Message -----
From: "Gustavo Madrigal" <linux_news at nextphere.com>
To: <umbrello-devel at kde.org>
Sent: Wednesday, January 16, 2002 1:40 PM
Subject: [Uml-devel] Fix for ListView Drag & Drop


> When the scrollbar appears on the ListView the drag and drop doesn't work
> properly (It doesn't allow to drop the item). This is due to the lack of
> coordinate translation between event's position and listview's
coordinates.
>
> The Fix,
>
> In uml-1.0.3/uml/mylistview.cpp change:
>
> line 445:
> MyListViewItem * item = (MyListViewItem*)itemAt(event -> pos());
>
> replace it with:
> QPoint pt =  ((MyListView*)this)->contentsToViewport(event -> pos());
> MyListViewItem * item = (MyListViewItem*)itemAt(pt);
>
> For the development version change line 474 (I have and old cvs snapshot,
2
> weeks old)
>
> Also, I have fixed the usecase properties call from the listview and I am
> working on  Drag&Drop of multiple items and Copy&Paste between
> several instances of the uml application (Right now only empty folders can
be
> pasted). I will be sending this stuff to Paul Hensgen for him to
considerate.
>
> Regards,
>
> Gustavo Madrigal
>





More information about the umbrello-devel mailing list