[Kmymoney-devel] Refreshing views only when needed

Alvaro Soliverez asoliverez at kde.org
Wed Sep 8 19:43:28 CEST 2010

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 needed

I think this is a relatively simple modification, and it could help a
great deal toward improving performance.



More information about the KMyMoney-devel mailing list