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

List:       kde-devel
Subject:    Re: Overriding mouse-clicks in khtmlpart
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2003-08-05 17:25:24
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 05 August 2003 18:48, Johnny Andersson wrote:
> Hello. I'm trying to prevent a khtmlpart from receiving mouse-click
> events. The idea is that my program looks at the link the user clicked,
> and only if my program allows it, the khtmlpart follows the link.
>
> I've tried installing an even filter, didn't work, I've tried
> subclassing khtmlpart and reimplementing  khtmlMousePressEvent, didn't
> work either - the part keeps receiving and responding to clicks.
>
> A little help would be appreciated.

I think there is a signal in BrowserExtension to connect to, 
openURLRequest or something like that.

IIRC the part does not automatically follow links when you have this 
connected.

Cheers,
Kevin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Attachment #5 (application/pgp-signature)]

>> 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