BrowserExtension::isURLDropHandlingEnabled unimplemented?

David Faure dfaure at klaralvdalens-datakonsult.se
Fri Feb 14 23:45:09 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 15 February 2003 00:39, Leo Savernik wrote:
> Hello,
> 
> I wanted to look into fixing a long time bug that prevents dropping an url 
> onto a KHtmlImage part. I saw that the KHTMLImage ctor contains the line
> m_ext->setURLDropHandlingEnabled( true );
> whose documentation tells me: "URL drop handling is a property
>    * describing whether the hosting shell component is allowed to install an
>    * event filter on the part's widget, to listen for URI drop events. Set it 
> to true if you [...] do not provide any special URI drop handling. "
> 
> That implies that URL drops should work automagically. However, they don't.
> 
> To find the source setting up the url drop handler i grepped kdelibs with
> grep -rie "isurldr"
> and found no occurrences other than those defined in browserextension 
> (ignoring the methods of the same name in kdeui).
> grepping kdebase for the same string reveals not a single occurrence at all.
> 
> Which leads to the questions: Is it implemented at all?

Yes, see KonqView::connectPart() (line 399 and below)
for the 'installEventFilter if wanted' code,

and KonqView::eventFilter() for the DnD code.

Happy debugging ;)

(My last commit to KonqView fixed connectPart in the case where there's
no browserextension, a stupid "if (!ext) return;" made it skip some stuff,
but that's not relevant to your problem since khtmlimage has a browserextension)

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+TX+F72KcVAmwbhARAts1AJ4gxunYv3+tD31a7b9ZNgB7SPxMEgCdG8GB
mY/RLmgfHpFeAxnbAguK+hs=
=pCa7
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list