Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/AbstractApplicationHeader.qml
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 103 | anchors { | |||
---|---|---|---|---|---|
105 | right: parent.right | 105 | right: parent.right | ||
106 | bottom: parent.bottom | 106 | bottom: parent.bottom | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | height: __appWindow.reachableMode && __appWindow.reachableModeEnabled ? root.maximumHeight : (root.minimumHeight > 0 ? Math.max(root.height, root.minimumHeight) : root.preferredHeight) | 109 | height: __appWindow.reachableMode && __appWindow.reachableModeEnabled ? root.maximumHeight : (root.minimumHeight > 0 ? Math.max(root.height, root.minimumHeight) : root.preferredHeight) | ||
110 | 110 | | |||
111 | //FIXME: see FIXME below | 111 | //FIXME: see FIXME below | ||
112 | Connections { | 112 | Connections { | ||
113 | target: root.page.globalToolBarItem | 113 | target: root.page ? root.page.globalToolBarItem : null | ||
114 | enabled: headerSlideConnection.passive && page.globalToolBarItem | 114 | enabled: headerSlideConnection.passive && target | ||
115 | onImplicitHeightChanged: root.implicitHeight = root.page.globalToolBarItem.implicitHeight | 115 | onImplicitHeightChanged: root.implicitHeight = root.page.globalToolBarItem.implicitHeight | ||
116 | } | 116 | } | ||
117 | 117 | | |||
118 | Connections { | 118 | Connections { | ||
119 | id: headerSlideConnection | 119 | id: headerSlideConnection | ||
120 | target: root.page ? root.page.flickable : null | 120 | target: root.page ? root.page.flickable : null | ||
121 | enabled: !passive | 121 | enabled: !passive | ||
122 | property int oldContentY | 122 | property int oldContentY | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |