[Kmymoney-devel] [Bug 230277] Suppress display of unused institutions

Cristian Onet onet.cristian at gmail.com
Sat Mar 12 12:03:49 CET 2011


https://bugs.kde.org/show_bug.cgi?id=230277


Cristian Onet <onet.cristian at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #12 from Cristian Onet <onet cristian gmail com>  2011-03-12 12:03:46 ---
SVN commit 1224575 by conet:

Instead of synchronizing the whole account tree on each data changed take
advantage of the new, more granular, signals and perform the appropriate
modifications in the model's data after it has been loaded once. 
Also create a separate instance for the institutions model. This change has the
following rationale. Mixing the two hierarchies in the same model (by account
type and institution) would make it difficult to implement changes since
depending on the changes it would imply structural modifications in only one
instance of the same account. So for example changing the institution means a
structural change in the institution hierarchy but no change in the accounts by
type hierarchy. Separating the two hierarchies means that one account can be
found only once in the model and it also simplifies the implementation of the
modifications slots.

REVIEW: 6589
BUG: 230277

 M  +394 -205  models/accountsmodel.cpp  
 M  +60 -7     models/accountsmodel.h  
 M  +12 -11    models/models.cpp  
 M  +5 -3      models/models.h  
 M  +2 -2      views/kinstitutionsview.cpp  
 M  +39 -3     views/kmymoneyview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1224575

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list