Add example app for printing highlighted text to pdf
ClosedPublic

Authored by kossebau on May 20 2019, 3:44 AM.

Details

Summary

Gives an example how to use KSyntaxHighlighting when simply wanting to process
a QTextDocument into rich text and output that.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.May 20 2019, 3:44 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptMay 20 2019, 3:44 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
kossebau requested review of this revision.May 20 2019, 3:44 AM
dhaumann accepted this revision.May 20 2019, 5:24 AM
dhaumann added a subscriber: dhaumann.

I ngeneral looks good to me. Maybe use ecm_optional_add_subdirectory - this also allows 3rd party users to omit the code and it still works.

examples/CMakeLists.txt
6 ↗(On Diff #58327)

Maybe we use the optional variant like:

ecm_optional_add_subdirectory (codepdfprinter)
This revision is now accepted and ready to land.May 20 2019, 5:24 AM
pino added a subscriber: pino.May 20 2019, 5:28 AM
pino added inline comments.
examples/codepdfprinter/main.cpp
36 ↗(On Diff #58327)

typo, "prin"

This revision was automatically updated to reflect the committed changes.
kossebau marked 2 inline comments as done.