Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/ApplicationHeader.qml
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Line(s) | 254 | onClicked: { | |||
---|---|---|---|---|---|
265 | } else { | 265 | } else { | ||
266 | __appWindow.pageStack.currentIndex = modelData; | 266 | __appWindow.pageStack.currentIndex = modelData; | ||
267 | } | 267 | } | ||
268 | } | 268 | } | ||
269 | 269 | | |||
270 | Loader { | 270 | Loader { | ||
271 | id: delegateLoader | 271 | id: delegateLoader | ||
272 | height: parent.height | 272 | height: parent.height | ||
273 | x: titleList.wideMode || headerStyle == ApplicationHeaderStyle.Titles ? (Math.min(delegate.width - implicitWidth, Math.max(0, titleList.contentX - delegate.x + navButtons.width))) : 0 | 273 | x: titleList.wideMode || headerStyle == ApplicationHeaderStyle.Titles ? (Math.min(delegate.width - implicitWidth, Math.max(0, titleList.contentX - delegate.x + navButtons.width + (navButtons.width > 0 ? Units.smallSpacing : 0)))) : 0 | ||
274 | width: parent.width - x | 274 | width: parent.width - x | ||
275 | 275 | | |||
276 | Connections { | 276 | Connections { | ||
277 | target: delegateLoader.page | 277 | target: delegateLoader.page | ||
278 | Component.onDestruction: delegateLoader.sourceComponent = null | 278 | Component.onDestruction: delegateLoader.sourceComponent = null | ||
279 | } | 279 | } | ||
280 | 280 | | |||
281 | sourceComponent: header.pageDelegate | 281 | sourceComponent: header.pageDelegate | ||
Show All 20 Lines |