Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/globaltoolbar/TitlesPageHeader.qml
| Show All 28 Lines | 27 | AbstractPageHeader { | |||
|---|---|---|---|---|---|
| 29 | 29 | | |||
| 30 | Loader { | 30 | Loader { | ||
| 31 | id: titleLoader | 31 | id: titleLoader | ||
| 32 | 32 | | |||
| 33 | anchors { | 33 | anchors { | ||
| 34 | verticalCenter: parent.verticalCenter | 34 | verticalCenter: parent.verticalCenter | ||
| 35 | left: parent.left | 35 | left: parent.left | ||
| 36 | right: parent.right | 36 | right: parent.right | ||
| 37 | leftMargin: Units.largeSpacing | 37 | leftMargin: Units.largeSpacing * 2 | ||
ahiemstra: Shouldn't this be Units.gridUnit if you actually want to match the default Page margins? | |||||
| 38 | } | 38 | } | ||
| 39 | height: Math.min(root.height, item | 39 | height: Math.min(root.height, item | ||
| 40 | ? (item.Layout.preferredHeight > 0 ? item.Layout.preferredHeight : item.implicitHeight) | 40 | ? (item.Layout.preferredHeight > 0 ? item.Layout.preferredHeight : item.implicitHeight) | ||
| 41 | : 0) | 41 | : 0) | ||
| 42 | 42 | | |||
| 43 | sourceComponent: page ? page.titleDelegate : null | 43 | sourceComponent: page ? page.titleDelegate : null | ||
| 44 | } | 44 | } | ||
| 45 | } | 45 | } | ||
| 46 | 46 | | |||
Shouldn't this be Units.gridUnit if you actually want to match the default Page margins?