Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/RefreshableScrollView.qml
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 136 | onTriggered: { | |||
---|---|---|---|---|---|
138 | if (!root.refreshing && parent.y - busyIndicatorFrame.headerItemHeight > busyIndicatorFrame.height/2 + topPadding) { | 138 | if (!root.refreshing && parent.y - busyIndicatorFrame.headerItemHeight > busyIndicatorFrame.height/2 + topPadding) { | ||
139 | root.refreshing = true; | 139 | root.refreshing = true; | ||
140 | } | 140 | } | ||
141 | } | 141 | } | ||
142 | } | 142 | } | ||
143 | Connections { | 143 | Connections { | ||
144 | enabled: typeof applicationWindow !== "undefined" | 144 | enabled: typeof applicationWindow !== "undefined" | ||
145 | target: typeof applicationWindow !== "undefined" ? applicationWindow() : null | 145 | target: typeof applicationWindow !== "undefined" ? applicationWindow() : null | ||
146 | onReachableModeChanged: { | 146 | function onReachableModeChanged() { | ||
147 | overshootResetTimer.running = applicationWindow().reachableMode; | 147 | overshootResetTimer.running = applicationWindow().reachableMode; | ||
148 | } | 148 | } | ||
149 | } | 149 | } | ||
150 | Timer { | 150 | Timer { | ||
151 | id: overshootResetTimer | 151 | id: overshootResetTimer | ||
152 | interval: (typeof applicationWindow !== "undefined" && applicationWindow().reachableMode) ? 8000 : 2000 | 152 | interval: (typeof applicationWindow !== "undefined" && applicationWindow().reachableMode) ? 8000 : 2000 | ||
153 | onTriggered: { | 153 | onTriggered: { | ||
154 | //put it there because widescreen may have changed since timer start | 154 | //put it there because widescreen may have changed since timer start | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |