Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigEntries.qml
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 78 | model: PlasmaCore.SortFilterModel { | |||
---|---|---|---|---|---|
86 | 86 | | |||
87 | sortRole: "category" | 87 | sortRole: "category" | ||
88 | sortColumn: 0 | 88 | sortColumn: 0 | ||
89 | isSortLocaleAware: true | 89 | isSortLocaleAware: true | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | header: Kirigami.AbstractListItem { | 92 | header: Kirigami.AbstractListItem { | ||
93 | 93 | | |||
94 | leftPadding: LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
95 | rightPadding: !LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
96 | | ||||
97 | hoverEnabled: false | 94 | hoverEnabled: false | ||
98 | 95 | | |||
99 | RowLayout { | 96 | RowLayout { | ||
100 | Kirigami.Heading { | 97 | Kirigami.Heading { | ||
101 | text: i18nc("Name of the system tray entry", "Entry") | 98 | text: i18nc("Name of the system tray entry", "Entry") | ||
102 | level: 2 | 99 | level: 2 | ||
103 | Layout.fillWidth: true | 100 | Layout.fillWidth: true | ||
104 | } | 101 | } | ||
Show All 11 Lines | |||||
116 | } | 113 | } | ||
117 | } | 114 | } | ||
118 | } | 115 | } | ||
119 | 116 | | |||
120 | section { | 117 | section { | ||
121 | property: "category" | 118 | property: "category" | ||
122 | delegate: Kirigami.ListSectionHeader { | 119 | delegate: Kirigami.ListSectionHeader { | ||
123 | label: categoryName(section) | 120 | label: categoryName(section) | ||
124 | | ||||
125 | leftPadding: LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
126 | rightPadding: !LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
127 | } | 121 | } | ||
128 | } | 122 | } | ||
129 | 123 | | |||
130 | delegate: Kirigami.AbstractListItem { | 124 | delegate: Kirigami.AbstractListItem { | ||
131 | 125 | | |||
132 | highlighted: false | 126 | highlighted: false | ||
133 | hoverEnabled: false | 127 | hoverEnabled: false | ||
134 | 128 | | |||
135 | leftPadding: LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
136 | rightPadding: !LayoutMirroring.enabled && scrollView.scrollBarVisible ? scrollView.scrollBarWidth : padding * 2 | | |||
137 | | ||||
138 | property bool isPlasmoid: model.itemType === "Plasmoid" | 129 | property bool isPlasmoid: model.itemType === "Plasmoid" | ||
139 | 130 | | |||
140 | contentItem: RowLayout { | 131 | contentItem: RowLayout { | ||
141 | RowLayout { | 132 | RowLayout { | ||
142 | Layout.fillWidth: true | 133 | Layout.fillWidth: true | ||
143 | 134 | | |||
144 | Kirigami.Icon { | 135 | Kirigami.Icon { | ||
145 | width: units.iconSizes.small | 136 | width: units.iconSizes.small | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |