Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/DiscoverDrawer.qml
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 29 | Kirigami.GlobalDrawer { | |||
---|---|---|---|---|---|
173 | } | 173 | } | ||
174 | 174 | | |||
175 | Component { | 175 | Component { | ||
176 | id: categoryActionComponent | 176 | id: categoryActionComponent | ||
177 | Kirigami.Action { | 177 | Kirigami.Action { | ||
178 | property QtObject category | 178 | property QtObject category | ||
179 | readonly property bool itsMe: window.leftPage && window.leftPage.hasOwnProperty("category") && (window.leftPage.category === category) | 179 | readonly property bool itsMe: window.leftPage && window.leftPage.hasOwnProperty("category") && (window.leftPage.category === category) | ||
180 | text: category ? category.name : "" | 180 | text: category ? category.name : "" | ||
181 | iconName: category ? category.icon : "" | ||||
181 | checked: itsMe | 182 | checked: itsMe | ||
182 | visible: (!window.leftPage | 183 | visible: (!window.leftPage | ||
183 | || !window.leftPage.subcategories | 184 | || !window.leftPage.subcategories | ||
184 | || window.leftPage.subcategories === undefined | 185 | || window.leftPage.subcategories === undefined | ||
185 | || currentSearchText.length === 0 | 186 | || currentSearchText.length === 0 | ||
186 | || (category && category.contains(window.leftPage.subcategories)) | 187 | || (category && category.contains(window.leftPage.subcategories)) | ||
187 | ) | 188 | ) | ||
188 | onTriggered: { | 189 | onTriggered: { | ||
Show All 27 Lines |