D14730: Sort returned formats in Definition::formats() by id
noreply at phabricator.kde.org
Fri Aug 10 13:47:10 BST 2018
dhaumann created this revision.
dhaumann added reviewers: vkrause, cullmann.
Restricted Application added projects: Kate, Frameworks.
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel.
dhaumann requested review of this revision.
Sorting the formats() by id results in the same order as the
itemDatas are defined in the xml file. This is required for
- KTextEditor currently uses the first format if no format was explicitly specified (which typically is "Normal Text")
- Fonts & Colors will list the itemDatas in correct order
- Printing the syntax guide is sorted correctly as well
make && make test
R216 Syntax Highlighting
sort-formats (branched from master)
To: dhaumann, vkrause, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel