EntityOrderProxyModel: adapt base class for reordering favorites
ClosedPublic

Authored by dfaure on Nov 18 2017, 12:40 PM.

Details

Summary

In order to use an EOPM on top of the favorites model, we need
the config key to be fixed (e.g. "0") rather than "the parent
collection" in ETM, since the favorites are a flat list of individually
picked collection, with a different parent in ETM. We want a single
order. So the new virtual parentCollection is reimplemented in a new
proxy derived class in mailcommon, for ordering favorites.

Test Plan

With the mailcommon and kmail patches on top of this,
I can reorder favorites using drag-n-drop and the order is persisted.

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure created this revision.Nov 18 2017, 12:40 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptNov 18 2017, 12:40 PM
mlaurent accepted this revision.Nov 24 2017, 8:26 AM
This revision is now accepted and ready to land.Nov 24 2017, 8:26 AM
This revision was automatically updated to reflect the committed changes.