<table><tr><td style="">progwolff created this revision.<br />progwolff added reviewers: VDG, Kirigami.<br />Restricted Application added a project: Kirigami.<br />Restricted Application added a subscriber: plasma-devel.<br />progwolff 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/D11289">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In some cases, form items go together with a checkbox which can be used to disable the item.<br />
An example for such an item is the line edit in the first row of the screenlocker kcm.<br />
Here, a checkbox is prepended to the line edit's label.</p>
<p>In Kirigami, there is (afaik) no way to add a widget to a FormLayout item's buddyComponent.<br />
This patch adds an optional combobox to the buddyComponent.</p>
<p>A place where I would like to use this is the fonts kcm: <a href="https://phabricator.kde.org/T7927#132277" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/T7927#132277</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>I added a checkable item to the FormLayout gallery page.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R169 Kirigami</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11289">https://phabricator.kde.org/D11289</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>examples/gallerydata/contents/ui/gallery/FormLayoutGallery.qml<br />
src/controls/templates/FormLayout.qml<br />
src/formlayoutattached.cpp<br />
src/formlayoutattached.h</div></div></div><br /><div><strong>To: </strong>progwolff, VDG, Kirigami<br /><strong>Cc: </strong>plasma-devel, apol, davidedmundson, mart, hein<br /></div>