Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Page.qml
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 21 | QQC2.Page { | |||
---|---|---|---|---|---|
211 | * if you want to make sure some elements are completely in a | 211 | * if you want to make sure some elements are completely in a | ||
212 | * layer on top of the whole content, parent items to this one. | 212 | * layer on top of the whole content, parent items to this one. | ||
213 | * It's a "local" version of ApplicationWindow's overlay | 213 | * It's a "local" version of ApplicationWindow's overlay | ||
214 | * @since 2.5 | 214 | * @since 2.5 | ||
215 | */ | 215 | */ | ||
216 | readonly property alias overlay: overlayItem | 216 | readonly property alias overlay: overlayItem | ||
217 | 217 | | |||
218 | /** | 218 | /** | ||
219 | * icon: variant | ||||
220 | * | ||||
221 | * The icon that represents this page. | ||||
222 | */ | ||||
223 | property ActionIconGroup icon: ActionIconGroup {} | ||||
mart: for consistency, should be a private/ActionItemGroup.qml (which mimics the upstream qqc2 api… | |||||
224 | | ||||
225 | /** | ||||
226 | * needsAttention: bool | ||||
227 | * | ||||
228 | * Whether this page needs user attention. | ||||
229 | */ | ||||
230 | property bool needsAttention | ||||
231 | | ||||
232 | /** | ||||
233 | * progress: real | ||||
234 | * | ||||
235 | * Progress of a task this page is doing. Set to undefined to indicate | ||||
236 | * that there are no ongoing tasks. | ||||
237 | */ | ||||
238 | property var progress: undefined | ||||
mart: again, not convinced we should have this, seems a bit oddly specific | |||||
it's not uncommon for apps to have one page associated with an ongoing task.
cblack: it's not uncommon for apps to have one page associated with an ongoing task.
examples:
- clocks… | |||||
239 | | ||||
240 | /** | ||||
219 | * titleDelegate: Component | 241 | * titleDelegate: Component | ||
220 | * The delegate which will be used to draw the page title. It can be customized to put any kind of Item in there. | 242 | * The delegate which will be used to draw the page title. It can be customized to put any kind of Item in there. | ||
221 | * @since 2.7 | 243 | * @since 2.7 | ||
222 | */ | 244 | */ | ||
223 | property Component titleDelegate: Kirigami.Heading { | 245 | property Component titleDelegate: Kirigami.Heading { | ||
224 | id: title | 246 | id: title | ||
225 | level: 1 | 247 | level: 1 | ||
226 | Layout.fillWidth: true | 248 | Layout.fillWidth: true | ||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |
for consistency, should be a private/ActionItemGroup.qml (which mimics the upstream qqc2 api icon.name/source/width/height/color)