D27817: [resources/ews] Adjust name of root collection to the name of the resource
Daniel Vrátil
noreply at phabricator.kde.org
Tue Mar 17 13:15:22 GMT 2020
dvratil requested changes to this revision.
dvratil added a comment.
This revision now requires changes to proceed.
This is not the right way to fix the display name visible to the user. Use `EntityDisplayAttribute` instead:
auto *attr = collection.attribute<Akonadi::EntityDisplayAttribute>(Akonadi::Collection::AddIfMissing);
attr->setDisplayName(newName);
new CollectionModifyJob(collection);
All UI components prefer using the display name from the attribute over the `Collection::name()`.
REPOSITORY
R44 KDE PIM Runtime
REVISION DETAIL
https://phabricator.kde.org/D27817
To: poboiko, dvratil, nowicki
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20200317/fe2e0aa8/attachment.html>
More information about the kde-pim
mailing list