Ad a readOnly property to the QtQuick2 Document type which disables the loading of editor UI controls.
ClosedPublic

Authored by denexter on Dec 6 2019, 3:29 AM.

Details

Summary

This speeds up load times when simply viewing a document.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
denexter created this revision.Dec 6 2019, 3:29 AM
Restricted Application added a project: Calligra: 3.0. · View Herald TranscriptDec 6 2019, 3:29 AM
Restricted Application added a subscriber: Calligra-Devel-list. · View Herald Transcript
denexter requested review of this revision.Dec 6 2019, 3:29 AM
pvuorela added inline comments.Dec 30 2019, 3:13 PM
components/Document.cpp
57

Looks like this is on top of Sailfish patched Calligra, upstream doesn't have lastError. Could otherwise resolve that conflict myself, but the arc tool doesn't seem to play along well, losing the metadata by doing the commit myself.

pvuorela accepted this revision.Dec 31 2019, 10:25 AM

Seems to work and big impact indeed. Approving already.

This revision is now accepted and ready to land.Dec 31 2019, 10:25 AM
denexter updated this revision to Diff 72472.Dec 31 2019, 11:15 AM
denexter marked an inline comment as done.
denexter added inline comments.
components/Document.cpp
57

Updated relative to an unpatched Calligra,

This revision was automatically updated to reflect the committed changes.