Changeset View
Changeset View
Standalone View
Standalone View
sidebar/package/contents/ui/CategoriesPage.qml
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 110 | if (applicationWindow().wideScreen) { | |||
---|---|---|---|---|---|
111 | subCategoryColumn.focus = true; | 111 | subCategoryColumn.focus = true; | ||
112 | } else { | 112 | } else { | ||
113 | root.focusNextRequest(); | 113 | root.focusNextRequest(); | ||
114 | } | 114 | } | ||
115 | } | 115 | } | ||
116 | section { | 116 | section { | ||
117 | property: "categoryDisplayRole" | 117 | property: "categoryDisplayRole" | ||
118 | delegate: Kirigami.AbstractListItem { | 118 | delegate: Kirigami.AbstractListItem { | ||
119 | separatorVisible: false | 119 | width: categoryView.width | ||
120 | | ||||
121 | backgroundColor: Kirigami.Theme.backgroundColor | ||||
122 | Kirigami.Theme.inherit: false | ||||
123 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | ||||
124 | | ||||
125 | hoverEnabled: false | ||||
120 | supportsMouseEvents: false | 126 | supportsMouseEvents: false | ||
121 | RowLayout { | 127 | | ||
122 | anchors { | 128 | Kirigami.Heading { | ||
123 | left: parent.left | 129 | level: 2 | ||
124 | right: parent.right | | |||
125 | leftMargin: Kirigami.Units.smallSpacing | | |||
126 | } | | |||
127 | QtControls2.Label { | | |||
128 | id: sectionLabel | | |||
129 | text: section | 130 | text: section | ||
130 | Layout.minimumHeight: Math.max(implicitHeight, Kirigami.Units.iconSizes.smallMedium) | | |||
131 | elide: Text.ElideRight | | |||
132 | font.weight: Font.Bold | | |||
133 | } | | |||
134 | } | 131 | } | ||
135 | } | 132 | } | ||
136 | } | 133 | } | ||
137 | 134 | | |||
138 | delegate: Kirigami.BasicListItem { | 135 | delegate: Kirigami.BasicListItem { | ||
139 | id: delegate | 136 | id: delegate | ||
140 | icon: model.decoration | 137 | icon: model.decoration | ||
141 | label: model.display | 138 | label: model.display | ||
Show All 29 Lines |