-
Notifications
You must be signed in to change notification settings - Fork 0
/
LentaPost.qml
96 lines (88 loc) · 2.85 KB
/
LentaPost.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
/*
by sanekyy
Элемент - отображающий пост в ленте.
Column состоит из:
Кучи текста с инфой о постек
*/
import QtQuick 2.2
import QuickAndroid 0.1
import "../pages"
Item{
width: parent.width
height: childrenRect.height+20*A.dp
Paper {
id: paper
depth: 3
anchors.horizontalCenter: parent.horizontalCenter
width: texts.width+10*A.dp
height: texts.height * A.dp
Column{
id:texts
anchors.horizontalCenter: parent.horizontalCenter
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "postId: " + postId
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "userId: " + userId
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "username: " + username
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "fullName: " + fullName
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "dateEnd: " + dateEnd
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "description: " + description
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "url: " + url
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "tags: " + tags
type: Constants.smallText
color : Constants.black87
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text : "likes: " + likes
type: Constants.smallText
color : Constants.black87
}
}
Ink{
anchors.fill: parent
onClicked: present(Qt.resolvedUrl('../pages/Post.qml'),{"postId":postId});
}
}
// space
Item {
height: 8 * A.dp
width: parent.width
anchors.top:paper.top
}
}