Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Page.qml
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Line(s) | 397 | Loader { | |||
---|---|---|---|---|---|
400 | parent: root | 400 | parent: root | ||
401 | anchors { | 401 | anchors { | ||
402 | left: parent.left | 402 | left: parent.left | ||
403 | right: parent.right | 403 | right: parent.right | ||
404 | bottom: parent.bottom | 404 | bottom: parent.bottom | ||
405 | } | 405 | } | ||
406 | //It should be T2.Page, Qt 5.7 doesn't like it | 406 | //It should be T2.Page, Qt 5.7 doesn't like it | ||
407 | property Item page: root | 407 | property Item page: root | ||
408 | height: item ? item.height : 0 | 408 | height: item ? item.implicitHeight : 0 | ||
409 | active: typeof applicationWindow !== "undefined" && (!globalToolBar.row || root.globalToolBarStyle !== Kirigami.ApplicationHeaderStyle.ToolBar) && | 409 | active: typeof applicationWindow !== "undefined" && (!globalToolBar.row || root.globalToolBarStyle !== Kirigami.ApplicationHeaderStyle.ToolBar) && | ||
410 | //Legacy | 410 | //Legacy | ||
411 | (typeof applicationWindow === "undefined" || | 411 | (typeof applicationWindow === "undefined" || | ||
412 | (!applicationWindow().header || applicationWindow().header.toString().indexOf("ToolBarApplicationHeader") === -1) && | 412 | (!applicationWindow().header || applicationWindow().header.toString().indexOf("ToolBarApplicationHeader") === -1) && | ||
413 | (!applicationWindow().footer || applicationWindow().footer.toString().indexOf("ToolBarApplicationHeader") === -1)) | 413 | (!applicationWindow().footer || applicationWindow().footer.toString().indexOf("ToolBarApplicationHeader") === -1)) | ||
414 | source: Qt.resolvedUrl("./private/ActionButton.qml") | 414 | source: Qt.resolvedUrl("./private/ActionButton.qml") | ||
415 | } | 415 | } | ||
416 | ] | 416 | ] | ||
417 | 417 | | |||
418 | Layout.fillWidth: true | 418 | Layout.fillWidth: true | ||
419 | } | 419 | } |