Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinrules/package/contents/ui/RulesList.qml
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 60 | delegate: Kirigami.DelegateRecycler { | |||
---|---|---|---|---|---|
62 | sourceComponent: ruleBookDelegate | 62 | sourceComponent: ruleBookDelegate | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | displaced: Transition { | 65 | displaced: Transition { | ||
66 | NumberAnimation { properties: "y"; duration: Kirigami.Units.longDuration } | 66 | NumberAnimation { properties: "y"; duration: Kirigami.Units.longDuration } | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | Kirigami.PlaceholderMessage { | 69 | Kirigami.PlaceholderMessage { | ||
70 | visible: ruleBookView.count == 0 | 70 | visible: ruleBookView.count === 0 | ||
71 | anchors.centerIn: parent | 71 | anchors.centerIn: parent | ||
72 | width: parent.width - (units.largeSpacing * 4) | 72 | width: parent.width - (units.largeSpacing * 4) | ||
73 | text: i18n("No rules for specific windows are currently set"); | 73 | text: i18n("No rules for specific windows are currently set"); | ||
74 | } | 74 | } | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | header: Kirigami.InlineMessage { | 77 | header: Kirigami.InlineMessage { | ||
78 | id: exportInfo | 78 | id: exportInfo | ||
79 | icon.source: "document-export" | 79 | icon.source: "document-export" | ||
80 | showCloseButton: true | 80 | showCloseButton: true | ||
81 | text: i18n("Select the rules to export") | 81 | text: i18n("Select the rules to export") | ||
82 | actions: [ | 82 | actions: [ | ||
83 | Kirigami.Action { | 83 | Kirigami.Action { | ||
84 | iconName: "object-select-symbolic" | 84 | iconName: "object-select-symbolic" | ||
85 | text: checked ? i18n("Unselect All") : i18n("Select All") | 85 | text: checked ? i18n("Unselect All") : i18n("Select All") | ||
86 | checkable: true | 86 | checkable: true | ||
87 | checked: selectedIndexes.length == ruleBookView.count | 87 | checked: selectedIndexes.length === ruleBookView.count | ||
88 | onToggled: { | 88 | onToggled: { | ||
89 | if (checked) { | 89 | if (checked) { | ||
90 | selectedIndexes = [...Array(ruleBookView.count).keys()] | 90 | selectedIndexes = [...Array(ruleBookView.count).keys()] | ||
91 | } else { | 91 | } else { | ||
92 | selectedIndexes = []; | 92 | selectedIndexes = []; | ||
93 | } | 93 | } | ||
94 | } | 94 | } | ||
95 | } | 95 | } | ||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |