Add MarkInterfaceV2, to s/QPixmap/QIcon/g for symbols of marks

Authored by kossebau on Feb 20 2020, 11:13 PM.

Description

Add MarkInterfaceV2, to s/QPixmap/QIcon/g for symbols of marks

Summary:
Symbols used for marks can be used in different sizes, e.g. depending of the
line height, to which the icon border adapts, or for the context menu on
actions to toggle those marks. Being limited to set a single pixmap as
symbol for a mark results can result in badly scaled symbols being
displayed.
Switching to QIcon as dynamic pixmap provider for markers improves this.

For backward compatibility QIcon & QPixmaps are converted into each other in
case APIs are used mixed.

Reviewers: Kate, KDevelop, dhaumann, cullmann

Reviewed By: Kate, dhaumann, cullmann

Subscribers: cullmann, anthonyfieroni, dhaumann, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D27533

Details

Committed
kossebauMar 7 2020, 7:12 PM
Reviewer
Kate
Differential Revision
D27533: Add MarkInterfaceV2, to s/QPixmap/QIcon/g for symbols of marks
Parents
R39:875d4da5475f: Draw inlineNotes after drawing word wrap marker
Branches
Unknown
Tags
Unknown