Bug 236602 - Initial presentation of account balance wrong
Summary: Initial presentation of account balance wrong
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 19:59 UTC by Thomas Baumgart
Modified: 2010-05-06 21:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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