D8195: Improve render plugin selection
Volker Krause
noreply at phabricator.kde.org
Sun Oct 8 13:59:21 BST 2017
vkrause created this revision.
vkrause added a reviewer: knauss.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.
REVISION SUMMARY
This now considers two additional attributes:
- the message mimetype, with the most specific matching one considered first
- a plugin priority to disambiguate as a last resort
This became necessary with the fairly aggressive syntax highlighting
plugin also triggering on vcard or ical attachments. Their plugins now
have priority, as their mimetypes are more specific than text/plain the
highlighting plugin is registered for.
REPOSITORY
R94 PIM: Message Library
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D8195
AFFECTED FILES
messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
messageviewer/src/messagepartthemes/default/defaultrenderer_p.h
messageviewer/src/messagepartthemes/default/messagepartrendererbase.h
messageviewer/src/messagepartthemes/default/messagepartrendererfactory.cpp
messageviewer/src/messagepartthemes/default/messagepartrendererfactory.h
messageviewer/src/messagepartthemes/default/messagepartrendererfactory_p.h
messageviewer/src/messagepartthemes/default/plugins/attachmentmessagepartrenderer.cpp
mimetreeparser/src/viewer/messagepart.h
To: vkrause, knauss
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20171008/e959d898/attachment.html>
More information about the kde-pim
mailing list