Bug 236602

Summary: Initial presentation of account balance wrong
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Baumgart 2010-05-06 19:59:56 UTC
Version:           SVN HEAD (using KDE 4.3.5)
OS:                Linux
Installed from:    openSUSE RPMs

When the account and category view is initially displayed with all entries expanded, the balance of those accounts that have sub-accounts is wrong. In the expanded case, only their own balance w/o the balance of the sub-accounts should show up. Yet the amount shown is the one including the sub-accounts. Collapsing and expanding corrects the display for that single account.
Comment 1 Cristian OneČ› 2010-05-06 21:19:22 UTC
SVN commit 1123747 by conet:

BUG: 236602
Qt tricked us again, it seems that expanded(QModelIndex)/collapsed(QModelIndex) signals are emitted when expanding/collapsing one item at a time and there is no such signal as expandedAll/collapsedAll. So this is a workaround this issue. (Now I've only committed the implementation since Thomas was ahead of me on this).

 M  +26 -6     kmymoneyaccounttreeview.cpp  


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