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

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
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.Mon, Dec 30, 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.Tue, Dec 31, 10:25 AM

Seems to work and big impact indeed. Approving already.

This revision is now accepted and ready to land.Tue, Dec 31, 10:25 AM
denexter updated this revision to Diff 72472.Tue, Dec 31, 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.