1
/***************************************************************************
2
* Copyright 2010 Alexis Menard <menard@kde.org> *
3
* Copyright 2010 Artur Duque de Souza <asouza@kde.org> *
4
* Copyright 2010 Marco Martin <notmart@gmail.com> *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program; if not, write to the *
18
* Free Software Foundation, Inc., *
19
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
20
***************************************************************************/
35
y: unlockscreen.height/2 - height/2;
36
x: unlockscreen.width/4;
37
width: (unlockscreen.width/4) * 2;
43
GradientStop { position: 0.0; color: "black" }
44
GradientStop { position: 1.0; color: "white" }
54
height: parent.height;
59
GradientStop { position: 0.0; color: "white" }
60
GradientStop { position: 1.0; color: "black" }
70
drag.maximumX: dragwidget.width-draghandle.width;
73
draghandle.state = 'dragging';
77
if (draghandle.state != 'dragging')
79
var target = dragwidget.width/2;
80
if (draghandle.x > target) {
81
draghandle.state = 'unlocked';
83
draghandle.state = 'locked';
101
x: dragwidget.width - draghandle.width;
109
transitions: Transition {
110
NumberAnimation { properties: "x"; easing.type: "InOutQuad"; duration: 200 }