[KJots] Drop custom internal links, use akonadi default ones
ClosedPublic

Authored by poboiko on Apr 24 2020, 6:32 PM.

Details

Summary

No need to maintain custom URL schemas, as akonadi already has its own, together with various
helper functions to work with it.

Remove UrlRole and use EntityUrlRole instead (use akonadi:?item=... links).
Remove custom internal_link clipboard property, just use the default mechanism for URL setting.
Teach KJotsEdit to insert akonadi links too. This also improves drag-n-drop from treeview,
which is now pasted properly (i.e. title of page/book instead of link itself)

Test Plan
  1. Bookmarks work, both pages and books
  2. KJotsLinkDialog works nicely
  3. Tooltips also works
  4. Ctrl+Click navigation works

Diff Detail

Repository
R573 KJots
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
poboiko created this revision.Apr 24 2020, 6:32 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 24 2020, 6:32 PM
poboiko requested review of this revision.Apr 24 2020, 6:32 PM
dvratil accepted this revision.Apr 27 2020, 10:02 AM

Good idea, thanks.

This revision is now accepted and ready to land.Apr 27 2020, 10:02 AM
This revision was automatically updated to reflect the committed changes.