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

Reply via email to