Defer loading of views
ClosedPublic

Authored by wojnilowicz on Jul 1 2017, 6:00 PM.

Details

Summary

Purpose of this patch is to speed up KMyMoney startup. Payees view and
Budgets view have QSpliter which is relatively costly to initialize.
Should user use this pages, they will be loaded dynamically.

Changes:

  1. View frames have equal type, so it's shorter to have hash table than

separate pointers and viewID enum can be reused as well.

  1. UIs are inherited as private and not public for correctness.
  2. Constructors has been moved to init() methods which will be executed

when page is about to be shown.

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
wojnilowicz created this revision.Jul 1 2017, 6:00 PM
tbaumgart accepted this revision as: tbaumgart.Jul 6 2017, 12:00 PM
This revision is now accepted and ready to land.Jul 6 2017, 12:00 PM
This revision was automatically updated to reflect the committed changes.