Add support for correct save/load in LatexEntry, when LibSpectre don't installed.
ClosedPublic

Authored by sirgienko on Dec 2 2018, 11:41 AM.

Details

Summary

In this commit we save rendered image to .cws, in addition to a .eps file. So, if we haven't LibSpectre and can't work with .eps, we load rendered image and show it.
This change allow share worksheet with rendered LatexEntry from user with LibSpectre to user without LibSpectre, who could make changes, and send the worksheet back to first user (and first user don't need rerender LatexEntry and stiill have rendered the entry).

Diff Detail

Repository
R55 Cantor
Branch
latex-nonlibspectre
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5615
Build 5633: arc lint + arc unit
sirgienko created this revision.Dec 2 2018, 11:41 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptDec 2 2018, 11:41 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
sirgienko requested review of this revision.Dec 2 2018, 11:41 AM
sirgienko edited subscribers, added: filipesaraiva; removed: fazevedo.Dec 2 2018, 11:45 AM
asemke added inline comments.Feb 12 2019, 3:25 PM
src/latexentry.cpp
164

insertText or insertImage here? Why not to use QTextCursor(QImage&) directly instead of QTextCursor(QTextImageFormat&)? Why do we need to go here via this format class?

sirgienko added inline comments.Feb 12 2019, 5:33 PM
src/latexentry.cpp
164

We store properties, like EpsRenderer::CantorFormula, in this format. So, later, we could get it from the image.

asemke accepted this revision.Feb 14 2019, 8:08 AM
This revision is now accepted and ready to land.Feb 14 2019, 8:08 AM
sirgienko closed this revision.Feb 15 2019, 5:09 PM