Bug 373114

Summary: KRearrangeColumnsProxyModel isn't following the model protocol
Product: [Frameworks and Libraries] frameworks-kitemmodels Reporter: Emmanuel Lepage Vallée <emmanuel.lepage>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: a.samirh78, faure
Priority: NOR    
Version First Reported In: 5.28.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch

Description Emmanuel Lepage Vallée 2016-11-30 15:30:41 UTC
When the columns are changed at runtime, the views are badly confused. Also, not using the parent index in some methods break trees, but I don't care much about that.

Here is a patch to fix the worst issue. I can push it.
Comment 1 Emmanuel Lepage Vallée 2016-11-30 15:31:58 UTC
Created attachment 102549 [details]
patch
Comment 2 Christoph Feck 2016-11-30 15:51:53 UTC
Please create a review request for your patch, either on https://phabricator.kde.org/differential/ or https://git.reviewboard.kde.org/

The patch has multiple coding style issues, and these are best discussed with our code reviewing tools.
Comment 3 Emmanuel Lepage Vallée 2016-11-30 16:14:57 UTC
Done https://phabricator.kde.org/D3548
Comment 4 David Faure 2020-04-15 07:40:14 UTC
https://phabricator.kde.org/D27876 landed meanwhile.
Comment 5 Ahmad Samir 2021-08-25 11:19:23 UTC
Closing per comment#4.