[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [PATCH] Drag And Drop bug in K3ListView
From:       "Roman Jarosz" <kedgedev () centrum ! cz>
Date:       2007-12-29 20:48:02
Message-ID: op.t336qckhyuholc () localhost
[Download RAW message or body]

Hi

I've found a bug in drag&drop code in K3ListView.

The problem is visible in Kopete. If we start a drag, then \
K3ListView::contentsDragEnterEvent is called and a drag enter event is only accepted \
if acceptDrag return true. But in Kopete, when we start the drag the acceptDrag \
always returns false, because we can't drop to the same group in contact list and \
since the drag enter event wasn't accepted in contentsDragEnterEvent, the \
contentsDragMoveEvent is never emitted and we cannot control the drag.

Below is a patch that fixes this bug. I've looked at Q3ListView, Q3Table and \
Q3IconView code and it's always accepted there.

Can I commit this fix?

Thanks,
Roman Jarosz


Index: kdelibs/kde3support/kdeui/k3listview.cpp
===================================================================
--- kdelibs/kde3support/kdeui/k3listview.cpp    (revision 754272)
+++ kdelibs/kde3support/kdeui/k3listview.cpp    (working copy)
@@ -1275,8 +1275,7 @@

 void K3ListView::contentsDragEnterEvent(QDragEnterEvent *event)
 {
-  if (acceptDrag (event))
-    event->accept();
+  event->accept();
 }

 void K3ListView::contentsContextMenuEvent( QContextMenuEvent *event )

 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic