D27978: [FormLayout] Propagate FormData.enabled also to label

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Mar 11 10:26:40 GMT 2020


broulik created this revision.
broulik added a reviewer: Plasma.
Herald added a project: Kirigami.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  Allows to mark the section as disabled even when the control itself is not, e.g. when you have a `RowLayout` and don't want to disable the entire row.

TEST PLAN
  In the following example I don't want the `BusyIndicator` disabled but still have the rest of the row (the label *and* its section label) disabled.
  
    Kirigami.FormLayout {
        RowLayout {
            Kirigami.FormData.label: "Foo"
            Kirigami.FormData.enabled: !something.busy
    
            QQC2.CheckBox {
                text: "Enabled"
                enabled: !something.busy
            }
            
            QQC2.BusyIndicator {
                running: something.busy
                visible: running
            }
        }
    }

REPOSITORY
  R169 Kirigami

REVISION DETAIL
  https://phabricator.kde.org/D27978

AFFECTED FILES
  src/controls/FormLayout.qml

To: broulik, #plasma
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200311/74f7d766/attachment.html>


More information about the Plasma-devel mailing list