on xenial help sign in
No need for actualOffset with animation duration bounding
commita7899cd72d2149151e82fc30f662632261570947 authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 30 Apr 2014, 19:11 (12 years ago) parent91f62af
1 file changed+2−14
qml/Panel/ActiveCallHint.qml+2−14
qml/Panel/ActiveCallHint.qml+2−14
@@ -115,7 +115,6 @@ Rectangle {
115115 property int columnHeight: column1 ? column1.height : 0
116116
117117 delegate: contactColumnRow
118−
119118 model: 2
120119 offset: 0
121120
@@ -126,17 +125,6 @@ Rectangle {
126125 }
127126 }
128127
129− property real actualOffset: 0
130− property bool offsetGuard: false
131− onActualOffsetChanged: {
132− if (offsetGuard) { return; }
133− offsetGuard = true;
134−
135− offset = actualOffset;
136− if (actualOffset === model) { actualOffset = 0.0; }
137− offsetGuard = false;
138− }
139−
140128 Behavior on offset {
141129 id: offsetBehaviour
142130 SmoothedAnimation {
@@ -168,13 +156,13 @@ Rectangle {
168156 onRunningChanged: {
169157 if (running) {
170158 offsetBehaviour.enabled = false;
171− labelPathView.actualOffset = 0;
159+ labelPathView.offset = 0;
172160 offsetBehaviour.enabled = true;
173161 }
174162 }
175163
176164 onTriggered: {
177− labelPathView.actualOffset = labelPathView.actualOffset + 0.5;
165+ labelPathView.offset = labelPathView.offset + 0.5;
178166 }
179167 }
180168