File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ ColumnLayout {
15
15
actionItem: OptionSwitch {
16
16
checked: optionsModel .prune
17
17
onToggled: optionsModel .prune = checked
18
+ onCheckedChanged: {
19
+ if (checked == false ) {
20
+ pruneTargetSetting .state = " DISABLED"
21
+ } else {
22
+ pruneTargetSetting .state = " FILLED"
23
+ }
24
+ }
18
25
}
19
26
onClicked: {
20
27
loadedItem .toggle ()
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ AbstractButton {
19
19
states: [
20
20
State {
21
21
name: " FILLED"
22
- PropertyChanges { target: root; stateColor: Theme .color .neutral9 }
22
+ PropertyChanges {
23
+ target: root
24
+ enabled: true
25
+ stateColor: Theme .color .neutral9
26
+ }
23
27
},
24
28
State {
25
29
name: " HOVER"
@@ -28,6 +32,14 @@ AbstractButton {
28
32
State {
29
33
name: " ACTIVE"
30
34
PropertyChanges { target: root; stateColor: Theme .color .orange }
35
+ },
36
+ State {
37
+ name: " DISABLED"
38
+ PropertyChanges {
39
+ target: root
40
+ enabled: false
41
+ stateColor: Theme .color .neutral4
42
+ }
31
43
}
32
44
]
33
45
Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ TextEdit {
16
16
states: [
17
17
State {
18
18
name: " FILLED"
19
- PropertyChanges { target: root; textColor: Theme .color .neutral9 }
19
+ PropertyChanges {
20
+ target: root
21
+ enabled: true
22
+ textColor: Theme .color .neutral9
23
+ }
20
24
},
21
25
State {
22
26
name: " HOVER"
@@ -25,6 +29,14 @@ TextEdit {
25
29
State {
26
30
name: " ACTIVE"
27
31
PropertyChanges { target: root; textColor: Theme .color .orange }
32
+ },
33
+ State {
34
+ name: " DISABLED"
35
+ PropertyChanges {
36
+ target: root
37
+ enabled: false
38
+ textColor: Theme .color .neutral4
39
+ }
28
40
}
29
41
]
30
42
You can’t perform that action at this time.
0 commit comments