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

2020-03-13 Thread Kai Uwe Broulik
This revision was automatically updated to reflect the committed changes.
Closed by commit R169:1a36705f9613: [FormLayout] Propagate FormData.enabled 
also to label (authored by broulik).

REPOSITORY
  R169 Kirigami

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D27978?vs=77401&id=77541

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

AFFECTED FILES
  src/controls/FormLayout.qml

To: broulik, #plasma, #kirigami, mart
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, 
ahiemstra, davidedmundson, mart


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

2020-03-11 Thread Kai Uwe Broulik
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