[Kmymoney-devel] Refreshing views only when needed
onet.cristian at gmail.com
Wed Sep 8 20:08:01 CEST 2010
On Wednesday 08 September 2010 20:43:28 Alvaro Soliverez wrote:
> Hello all,
> here's an idea on improving performance.
> KMM refreshes all views when data changes. The fileChanged signal is
> connected to a slot that refreshes all views. So, regardless of
> whether that view is actually being shown (or is ever going to be
> shown at all), the view reloads all its data.
> My proposal is the following:
> - In each view, add a flag that signals whether the view should be
> refreshed or not
> - Only refresh a view if it is visible at the moment, otherwise set the
> flag - On the showEvent of each view, check the flag, and refresh if
> I think this is a relatively simple modification, and it could help a
> great deal toward improving performance.
AFAICT this is already implemented in most of the views (see m_needReload) and
if there are some which don't behave this way then they should be fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100908/6081ddc9/attachment.sig
More information about the KMyMoney-devel