Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/ApplicationHeader.qml
Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Line(s) | 346 | Loader { | |||
---|---|---|---|---|---|
364 | readonly property int index: parent.currentIndex | 364 | readonly property int index: parent.currentIndex | ||
365 | readonly property var modelData: parent.currentModelData | 365 | readonly property var modelData: parent.currentModelData | ||
366 | } | 366 | } | ||
367 | } | 367 | } | ||
368 | } | 368 | } | ||
369 | } | 369 | } | ||
370 | Connections { | 370 | Connections { | ||
371 | target: titleList.scrollingLocked ? pageRow.contentItem : null | 371 | target: titleList.scrollingLocked ? pageRow.contentItem : null | ||
372 | onContentXChanged: { | 372 | function onContentXChanged() { | ||
373 | if (!titleList.dragging && !titleList.movingHorizontally && !titleList.scrollMutex) { | 373 | if (!titleList.dragging && !titleList.movingHorizontally && !titleList.scrollMutex) { | ||
374 | titleList.contentX = pageRow.contentItem.contentX - pageRow.contentItem.originX + titleList.originX; | 374 | titleList.contentX = pageRow.contentItem.contentX - pageRow.contentItem.originX + titleList.originX; | ||
375 | } | 375 | } | ||
376 | } | 376 | } | ||
377 | } | 377 | } | ||
378 | } | 378 | } | ||
379 | } | 379 | } |