Adding virtual function

Olivier Goffart ogoffart at kde.org
Sun Mar 20 09:04:41 GMT 2005


Le Dimanche 20 Mars 2005 04:36, John Tapsell a écrit :
> Hi,
>   I want to add a virtual function "doDrag()" to khtmlPart which is called
> when a drag is performed.  This is so that apps like kopete can override
> what happens when you drag an image.  (Kopete wants to replace latex images
> with the formula they represent.  See bug 88750)
>
>   I have the code just sitting here ready to commit, but I think I cannot
> make BiC changes right?
>
> Thanks,
>
> JohnFlux

If you accept the virtual method to not be called if using an application 
compiled against the old library (i think you can do it for this)
you can use the KXMLGUIClient's virtual_hook

And in KDE4, add the real virtual function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050320/954e8d79/attachment.sig>


More information about the kfm-devel mailing list