[PATCH] Webcontent scrolling

Aaron J. Seigo aseigo at kde.org
Fri Jul 11 21:30:57 CEST 2008


On Friday 11 July 2008, William Viana wrote:
> The WebContent widget was not scrolling well. I took a look and by
> adding a call to update() in some of the events it at least works
> better.  update() forces a call to paint which is probably not the
> best thing to do after every mousePressEvent but I couldn't find a
> better way. It works well when you move the scroll bar but not really
> well when you click and press the scroll bar's arrows (no idea why).
> The update() call on loadFinished makes the widget to display the
> content faster.
>
> Please review.

makes sense, though i wonder if there isn't a way to get the needed update 
area from webkit and only update those areas.

indeed, QWebPage has the following signal:

void repaintRequested ( const QRect & dirtyRect )

does conneting that signal to a slot that then calls update(dirtyRect) on the 
Plasma::WebContent object work even better?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080711/219e3ae4/attachment.pgp 


More information about the Panel-devel mailing list