@@ -165,97 +165,3 @@ Item {
165165 }
166166 }
167167}
168−
169−//DraggingArea {
170−// id: root
171−// onPressed: mouse.accepted = true;
172−// hoverEnabled: true
173−
174−
175−// property bool closeable: true
176−
177−// property bool moving: false
178−// property real distance: 0
179−// readonly property int threshold: units.gu(2)
180−// property int offset: 0
181−
182−// readonly property real minSpeedToClose: units.gu(40)
183−
184−// signal close();
185−
186−// onMouseYChanged: {
187−// if (pressed) {
188−// appDelegate.y
189−// }
190−// }
191−
192−// onDragValueChanged: {
193−// if (!dragging) {
194−// return;
195−// }
196−// moving = moving || Math.abs(dragValue) > threshold;
197−// if (moving) {
198−// distance = dragValue + offset;
199−// }
200−// }
201−
202−// onMovingChanged: {
203−// if (moving) {
204−// offset = (dragValue > 0 ? -threshold: threshold)
205−// } else {
206−// offset = 0;
207−// }
208−// }
209−
210−// onDragEnd: {
211−// if (!root.closeable) {
212−// animation.animate("center")
213−// return;
214−// }
215−
216−// // velocity and distance values specified by design prototype
217−// if ((dragVelocity < -minSpeedToClose && distance < -units.gu(8)) || distance < -root.height / 2) {
218−// animation.animate("up")
219−// } else if ((dragVelocity > minSpeedToClose && distance > units.gu(8)) || distance > root.height / 2) {
220−// animation.animate("down")
221−// } else {
222−// animation.animate("center")
223−// }
224−// }
225−
226−// UbuntuNumberAnimation {
227−// id: animation
228−// objectName: "closeAnimation"
229−// target: dragArea
230−// property: "distance"
231−// property bool requestClose: false
232−
233−// function animate(direction) {
234−// animation.from = dragArea.distance;
235−// switch (direction) {
236−// case "up":
237−// animation.to = -root.height * 1.5;
238−// requestClose = true;
239−// break;
240−// case "down":
241−// animation.to = root.height * 1.5;
242−// requestClose = true;
243−// break;
244−// default:
245−// animation.to = 0
246−// }
247−// animation.start();
248−// }
249−
250−// onRunningChanged: {
251−// if (!running) {
252−// dragArea.moving = false;
253−// if (requestClose) {
254−// root.close();
255−// } else {
256−// dragArea.distance = 0;
257−// }
258−// }
259−// }
260−// }
261−//}