-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoadingDelegate.qml
117 lines (112 loc) · 3.51 KB
/
LoadingDelegate.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import QtQuick 2.0
import QtQuick.Layouts 1.15
Item {
// anchors.left: parent.left
// anchors.leftMargin: 10
width: listview.width
height: 100
ColumnLayout {
width: parent.width
height: parent.height
Rectangle {
Layout.leftMargin: 10
id: viewcontent
Layout.fillWidth: true
Layout.preferredHeight: 94
Rectangle {
id: voteicon
z: 1
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 10
width: 60
height: 65
radius: 10
color: "#9E9E9E"
Rectangle {
id: firstrow
height: parent.height
width: 20
x: parent.x
// color: "#FAFAFA"
// radius: 5
opacity: 0.8
}
}
ColumnLayout {
anchors.verticalCenter: parent.verticalCenter
anchors.left: voteicon.right
anchors.leftMargin: 27
// width: 100
// Layout.alignment: Qt.AlignVCenter
// Layout.leftMargin: -20
spacing: 7
Rectangle {
id: firstcolumn
width: 300
height: 25
radius: 5
color: "#9E9E9E"
Rectangle {
id: firstcolumnwhite
height: parent.height
width: 40
x: parent.x
// color: "#FAFAFA"
// radius: 5
opacity: 0.7
}
}
Rectangle {
id: secondcolumn
width: 300
height: 25
radius: 5
color: "#9E9E9E"
Rectangle {
id: secondcolumnwhite
height: parent.height
width: 40
x: parent.x
// color: "#FAFAFA"
// radius: 5
opacity: 0.7
}
}
}
}
Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
color: "#E0E0E0"
}
}
ParallelAnimation {
running: true
loops: Animation.Infinite
NumberAnimation {
target: firstcolumnwhite
property: "x"
duration: 2000
from: firstcolumn.x - 20
to: firstcolumn.width
easing.type: Easing.OutBack
}
NumberAnimation {
target: secondcolumnwhite
property: "x"
duration: 2000
from: secondcolumn.x - 20
to: secondcolumn.width
easing.type: Easing.OutBack
}
NumberAnimation {
target: firstrow
property: "x"
duration: 2000
from: voteicon.x - 20
to: voteicon.width
easing.type: Easing.OutBack
}
}
}