Bug 355229

Summary: akonadiconsole browser does not show any resource entries
Product: [Frameworks and Libraries] Akonadi Reporter: Vasilis Tsiligiannis <billtsil>
Component: akonadiconsoleAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: major CC: ach, kramski, sgruener
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Vasilis Tsiligiannis 2015-11-12 09:51:21 UTC
No entries show up when clicking on any collection

Reproducible: Always



Expected Results:  
There should be a list of entries for each non-empty collection
Comment 1 Vasilis Tsiligiannis 2015-11-12 09:52:50 UTC
Forgot to mention that the apps version is 15.08.2
Comment 2 kramski 2016-01-02 21:23:23 UTC
Same here (akonadiconsole v. 0.99, Using: KDE Frameworks 5.17.0, Qt 5.5.1 (built against 5.5.1) on fully updated Arch Linux).
Comment 3 Sebastian Gruener 2016-02-21 17:26:25 UTC
I can confirm this with akonadiconsole 0.99, Akonadi 5.1.51, KDE Framework 5.19, Qt 5.5.1 (Packages from Opensuse Tumbleweed)
Comment 4 Daniel Vrátil 2016-07-04 22:54:34 UTC
*** Bug 355743 has been marked as a duplicate of this bug. ***
Comment 5 David Faure 2016-07-05 07:02:47 UTC
Git commit 381acbc294dcecb0d4beb63721080d231e4bca38 by David Faure.
Committed on 05/07/2016 at 07:02.
Pushed by dfaure into branch 'master'.

Port StatisticsProxyModel to KExtraColumnsProxyModel.

* this fixes sibling() - the unittest confirmed Dan's assessment that
sibling() got broken for StatisticsProxyModel with Qt5.

* this reduces the number of dataChanged signals emitted by the proxy:
instead of dataChanged((row,0) (row,0)) + dataChanged((row,1) (row,3))
the proxy now emits dataChanged((row,0) (row,3)) directly

* I also removed the code emitting dataChanged for parent indexes,
the reasoning was "so that cumulative totals can be updated", but there
are no cumulative totals anywhere in this proxy (other than the tooltip).

* the awful model-index-struct-casting hack is no longer necessary,
the code is much simpler, there are now unittests (both here and for
the base class KExtraColumnsProxyModel in kitemmodels)...

M  +1    -0    autotests/libs/CMakeLists.txt
A  +241  -0    autotests/libs/statisticsproxymodeltest.cpp     [License: LGPL (v2+)]
A  +79   -0    autotests/libs/test_model_helpers.h     [License: LGPL (v2+)]
M  +72   -279  src/core/models/statisticsproxymodel.cpp
M  +9    -18   src/core/models/statisticsproxymodel.h

http://commits.kde.org/akonadi/381acbc294dcecb0d4beb63721080d231e4bca38