Port Grantlee contact printing model to KContacts::Addressee too
ClosedPublic

Authored by vkrause on Apr 22 2019, 10:15 AM.

Details

Summary

This means for the data both display and printing now use the same model,
so improvements to that will benefit both sides. Printing however isn't
able to use i18n in the templates yet, so we can't remove the i18n
properties here yet.

Diff Detail

Repository
R82 KDE PIM Application Libraries
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Apr 22 2019, 10:15 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 22 2019, 10:15 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
vkrause requested review of this revision.Apr 22 2019, 10:15 AM
dvratil added inline comments.
kaddressbookgrantlee/src/printing/autotests/grantleeprinttest.cpp
107–109

Does this needs adjustments in the printing templates as well?

kaddressbookgrantlee/src/printing/grantleeprint.cpp
95

The reinterpret_cast looks very shady, hopefully, we can get rid of it soon.

vkrause updated this revision to Diff 57303.May 1 2019, 10:17 AM

Remove the need for using reinterpret_cast.

vkrause added inline comments.May 1 2019, 10:18 AM
kaddressbookgrantlee/src/printing/autotests/grantleeprinttest.cpp
107–109

Yep, done in D20728.

dvratil accepted this revision.May 2 2019, 3:24 PM
This revision is now accepted and ready to land.May 2 2019, 3:24 PM
This revision was automatically updated to reflect the committed changes.