Repository navigation
Expand file tree
/
Copy pathMvItemView.qml
More file actions
102 lines (101 loc) · 2.22 KB
/
Copy pathMvItemView.qml
File metadata and controls
102 lines (101 loc) · 2.22 KB
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
import QtQuick 2.0
Rectangle
{
property string _source
property string _title
property string _detail
property int _playCount
property var onItemClicked:(function(){})
width: 231*dp
height: 191*dp
anchors
{
left:parent.left
leftMargin:16*dp
top:parent.top
topMargin:78*dp
}
Image
{
id:img
source: _source
width: parent.width
height: 124*dp
anchors
{
left:parent.left
top:parent.top
}
Image {
width: 33*dp
height: 33*dp
source: "http://lc-ba69fjyb.cn-n1.lcfile.com/b594990f2ef10a138041.png"
anchors.centerIn: parent
}
Image {
id: playCount
source: "http://lc-ba69fjyb.cn-n1.lcfile.com/57078656bab989e9d6a4.png"
width: 18*dp
height: 10*dp
anchors
{
right:parent.right
rightMargin:40*dp
top:parent.top
topMargin:7*dp
}
}
Text {
id: play_count
text: _playCount
font.pixelSize: 12
color: "white"
width: 30*dp
anchors
{
left:playCount.right
leftMargin:3*dp
right:parent.right
rightMargin:3*dp
verticalCenter:playCount.verticalCenter
}
}
}
Text {
id: label
text: qsTr(_title)
width: parent.width
wrapMode: Text.WordWrap
font.pixelSize: 16
anchors
{
top:img.bottom
topMargin:3*dp
left:parent.left
leftMargin:3*dp
}
}
Text {
id: detail
text: qsTr(_detail)
font.pixelSize: 13
width: parent.width
wrapMode: Text.WordWrap
anchors
{
top:label.bottom
topMargin:3*dp
left:parent.left
leftMargin:0
}
}
MouseArea
{
anchors.fill: parent
onClicked:
{
console.log("&*&*&*&*&*&*&*&")
onItemClicked()
}
}
}