[Marble-devel] Review Request: call update() instead of repaint()

Bernhard Beschow bbeschow at cs.tu-berlin.de
Tue Aug 16 19:11:15 UTC 2011



> On Aug. 15, 2011, 4:22 p.m., Torsten Rahn wrote:
> > Niko: good to know. Kishore: Ideally you'd get read/write access so that you can commit your stuff on your own: http://community.kde.org/Sysadmin/GitKdeOrgManual#How_to_get_read-write_developer_access

Please don't forget to add a "REVIEW: 102314" at the bottom of your commit message to close this review. Thx :)


- Bernhard


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102314/#review5711
-----------------------------------------------------------


On Aug. 13, 2011, 3:45 p.m., Kishore Jonnalagadda wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102314/
> -----------------------------------------------------------
> 
> (Updated Aug. 13, 2011, 3:45 p.m.)
> 
> 
> Review request for Marble.
> 
> 
> Summary
> -------
> 
> use repaint() instead of update() at various places. As per the Qt documentation, it is preferable to call update() instead of repaint(). Calling update() allows qt to optimize by calling paintEvent() only once as needed after several calls to update().
> 
> 
> Diffs
> -----
> 
>   src/ControlView.cpp dec4bcf 
>   src/lib/CurrentLocationWidget.cpp 5d77b74 
>   src/lib/MarbleWidget.cpp 9ae862e 
>   src/lib/graphicsview/ScreenGraphicsItem.cpp fde960a 
>   src/lib/routing/RoutingLayer.cpp 6eec57a 
>   src/plugins/render/fileview/FileViewFloatItem.cpp 377e404 
>   src/plugins/render/osmannotate/OsmAnnotatePlugin.cpp ccc3cf4 
>   src/plugins/render/routing/RoutingPlugin.cpp bb651e5 
> 
> Diff: http://git.reviewboard.kde.org/r/102314/diff
> 
> 
> Testing
> -------
> 
> I use marblewidget in my application and it works fine (better) after the change. I have also tried the marble application.
> 
> marble was built with QTONLY.
> 
> 
> Thanks,
> 
> Kishore
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20110816/ee647d96/attachment.html>


More information about the Marble-devel mailing list