Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/RefreshableScrollView.qml
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 197 | Timer { | |||
---|---|---|---|---|---|
200 | onTriggered: { | 200 | onTriggered: { | ||
201 | //put it there because widescreen may have changed since timer start | 201 | //put it there because widescreen may have changed since timer start | ||
202 | if (!Settings.isMobile || applicationWindow().wideScreen || root.flickableItem.verticalLayoutDirection === ListView.BottomToTop) { | 202 | if (!Settings.isMobile || applicationWindow().wideScreen || root.flickableItem.verticalLayoutDirection === ListView.BottomToTop) { | ||
203 | return; | 203 | return; | ||
204 | } | 204 | } | ||
205 | applicationWindow().reachableMode = !applicationWindow().reachableMode; | 205 | applicationWindow().reachableMode = !applicationWindow().reachableMode; | ||
206 | } | 206 | } | ||
207 | } | 207 | } | ||
208 | Binding { | | |||
209 | target: root.flickableItem | | |||
210 | property: "topMargin" | | |||
211 | value: !Settings.isMobile || applicationWindow().wideScreen | | |||
212 | ? (root.refreshing ? busyIndicatorFrame.height : 0) | | |||
213 | : Math.max(Math.max(root.topPadding - busyIndicatorFrame.headerItemHeight, 0) + (root.refreshing ? busyIndicatorFrame.height : 0), (applicationWindow().header ? applicationWindow().header.height : 0)) | | |||
214 | } | | |||
215 | 208 | | |||
216 | Binding { | 209 | Binding { | ||
217 | target: root.flickableItem | 210 | target: root.flickableItem | ||
218 | property: "flickableDirection" | 211 | property: "flickableDirection" | ||
219 | value: Flickable.VerticalFlick | 212 | value: Flickable.VerticalFlick | ||
220 | } | 213 | } | ||
221 | 214 | | |||
222 | Binding { | 215 | Binding { | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |