[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: XDND decode sequence
From: Espen Sand <espensa () online ! no>
Date: 1999-07-24 17:31:22
[Download RAW message or body]
(This concerns only HEAD)
I have an icon in khexedit that acts as a drag source for the active
displayed file. I use the new (Qt-2) QUriDrag to drag a file url.
In kwrite, I can do a drop. But when checking the drop (canDecode() in
void KWriteView::dropEvent( QDropEvent *event ) the code is made such
that it test for QTextDrag::canDecode(event) first and then
QUrlDrag::canDecode(event). What happens is that the
QTextDrag::canDecode(event) returns True, so that the dragged url is printed as
text in the editor, not the file contents.
Should one always test for QUrlDrag::canDecode() first and then
QTextDrag::canDecode() or is this an (Qt) error? When I switched the
sequence (Url first, then text) in kwrite, I could open the file. A drop
from the dragdrop Qt-example works as well (matched on text)
I use Qt 2.0, and an approx. one week old CVS copy (sorry).
--
Espen Sand
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic