<table><tr><td style="">dcaliste created this revision.<br />dcaliste added reviewers: leinir, danders, anthonyfieroni, Calligra: 3.0.<br />dcaliste added a project: Calligra: 3.0.<br />Herald added a subscriber: Calligra-Devel-list.<br />dcaliste requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15775">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, the item background color and the page cache properties in Words are built-in values (_resp. _ set to QColor(232, 233, 234) and false). They cannot be changed from QML or at all (for the background color). Users of libCalligraComponents.so and friends must patch the sources to change their behaviours.</p>

<p>This PR introduces a method to set the background color in KWCanvasItem. It also expands Components::View by overloading the fillColor property of QQuickPaintedItem and adds a pageCacheEnabled(bool) property.</p>

<p>The two new properties are implemented for text documents and are irrelevant for the other kind of document (but may have some sense in the future, if needed).</p>

<p>Is it the right way to go?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R8 Calligra</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15775">https://phabricator.kde.org/D15775</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>components/Document.cpp<br />
components/Document.h<br />
components/View.cpp<br />
components/View.h<br />
components/impl/DocumentImpl.cpp<br />
components/impl/DocumentImpl.h<br />
components/impl/TextDocumentImpl.cpp<br />
components/impl/TextDocumentImpl.h<br />
words/part/KWCanvasBase.cpp<br />
words/part/KWCanvasBase.h<br />
words/part/KWCanvasItem.cpp<br />
words/part/KWCanvasItem.h</div></div></div><br /><div><strong>To: </strong>dcaliste, leinir, danders, anthonyfieroni, Calligra: 3.0<br /><strong>Cc: </strong>Calligra-Devel-list, dcaliste, cochise, vandenoever<br /></div>