KListView breakage in HEAD

Ralf Nolden nolden at kde.org
Tue Jun 17 07:11:18 BST 2003


On Dienstag, 17. Juni 2003 04:23, Chris Lee wrote:

Can this be scheduled with Trolltech please, so the issues get resolved ?

Thanks.

Ralf

> This seems to be due to a bug in qt-copy.
>
> QListViewItem has a 'dragEnabled()' function which will return true or
> false on an item-by-item basis. The problem with this is that on a
> clickEvent, Qt will check the currently-selected list item to see if
> it's draggable, and if not, deselect the other selected list items.
>
> KListView::setDragEnabled doesn't call QLVI::setDragEnabled() on all of
> its items when it's called, leading to the problem.
>
> This breaks a few things. Notably, dragging of multiple files from Konq,
> dragging of songs in JuK (and Kiwi, too, but that's a different battle
> entirely), etc.
>
> This bug was (apparently) introduced in Qt 3.1.2. I propose that we
> either fix it in KListView by having KLV::setDragEnabled call
> QLVI::setDragEnabled for its children, or having TrollTech fix
> QListView's clickEvent checks.
>
> -clee

-- 
We're not a company, we just produce better code at less costs.
--------------------------------------------------------------------
Ralf Nolden
nolden at kde.org

The K Desktop Environment       The KDevelop Project
http://www.kde.org              http://www.kdevelop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030617/39693b7e/attachment.sig>


More information about the kde-core-devel mailing list