[Kmymoney-devel] [Bug 294093] The header state of some account trees in the application is not correctly restored on Windows

Cristian Onet onet.cristian at gmail.com
Tue Feb 14 19:01:31 UTC 2012


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


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

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




--- Comment #1 from Cristian Onet <onet cristian gmail com>  2012-02-14 19:01:31 ---
Git commit be9d99d447013d27b20f4c0a5c34b7d158deed33 by Cristian Oneț.
Committed on 14/02/2012 at 19:50.
Pushed by conet into branch 'master'.

Explanation (I figured this out by debugging Qt code):
Do this by setting the model of the view *before* the header state is being
restored.
This is necessary because in some cases a layout of the items is triggered
which causes
the header to ask for the column count from the model which is 0 if the model
is not set
and this causes the restored section sizes to be lost after the model is
finally set.

M  +1    -1    kmymoney/views/kaccountsview.cpp
M  +2    -1    kmymoney/views/kbudgetview.cpp
M  +1    -1    kmymoney/views/kcategoriesview.cpp
M  +1    -1    kmymoney/views/kinstitutionsview.cpp

http://commits.kde.org/kmymoney/be9d99d447013d27b20f4c0a5c34b7d158deed33

-- 
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