checkable FormLayout items

Authored by progwolff on Apr 9 2018, 4:43 PM.

Description

checkable FormLayout items

Summary:
In some cases, form items go together with a checkbox which can be used to disable the item.
An example for such an item is the line edit in the first row of the screenlocker kcm.
Here, a checkbox is prepended to the line edit's label.

In Kirigami, there is (afaik) no way to add a widget to a FormLayout item's buddyComponent.
This patch adds an optional checkbox to the buddyComponent.

A place where I would like to use this is the fonts kcm: https://phabricator.kde.org/T7927#132277

Test Plan:
I added a checkable item to the FormLayout gallery page.

I also rewrote the fonts kcm (not comitted yet), which now looks like this:

Reviewers: VDG, Kirigami, mart

Reviewed By: VDG, Kirigami, mart

Subscribers: mart, ngraham, plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D11289

Details

Committed
progwolffApr 9 2018, 4:43 PM
Reviewer
VDG
Differential Revision
D11289: checkable FormLayout items
Parents
R169:13477bba938e: use different icons in the color set example
Branches
Unknown
Tags
Unknown