Bug 355229 - akonadiconsole browser does not show any resource entries
Summary: akonadiconsole browser does not show any resource entries
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: akonadiconsole (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 355743 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-12 09:51 UTC by Vasilis Tsiligiannis
Modified: 2016-07-05 07:02 UTC (History)
3 users (show)

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