-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChannelListItem.qml
119 lines (98 loc) · 2.73 KB
/
ChannelListItem.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
118
119
import QtQuick 2.13
// Channel View Layout for ListView
Item {
// Elements Border Size
property real borderSize: 2
// Alias for Container Width
property alias channelViewWidth: channelView_id.width
// Alias for Container Height
property alias channelViewHeight: channelView_id.height
// Alias for Channel' Image Width
property alias channelImageWidth: channelImage_id.width
// Alias for Channel' Image Height
property alias channelImageHeight: channelImage_id.height
// Alias for Channel' Image Source
property alias imageSource: channelImage_id.source
// Alias for Channel' Title.
property alias channelTitle: channelTitle_id.text
// Alias for Channel' Description
property alias channelDescription: channelDescription_id.text
// Min. Image Width
property real minImageWidth: 88
// Min. Image Height
property real minImageHeight: 31
// Max. Image Width
// Max. Image Height
// ID
id: channelView_id
// Width
width: 200
// Height
height: 80
// Color = Transparent
// Channel' Image
Image {
// ID
id: channelImage_id
// Initial Width
width: minImageWidth
// Initial Height
height: minImageHeight
// X-Offset
x: 0
// Y-Offset
y: borderSize
} /// Channel' Image
// Channel' Title
Text {
// ID
id: channelTitle_id
// Anchors
//anchors.left: channelImage_id.right
//
x: ( channelImage_id.x + channelImage_id.width ) + 0
//
y: ( channelImage_id.y + channelImage_id.height ) / 2
// Text
text: "No Title"
// Style
font.bold: true
wrapMode: Text.WrapAnywhere
// Elide
elide: Text.ElideRight
// Width
width: channelView_id.width - ( x + (borderSize * 6) )
// Height
height: channelView_id.height - ( y + (borderSize * 6) )
// Visibility
visible: true
} /// Channel' Title
// Channel' Description
Text {
// ID
id: channelDescription_id
// Text
text: "No Description"
// X-Offset
x: 0
// Y
y: borderSize
// Anchors
anchors.top: channelImage_id.bottom
// Width
width: channelView_id.width - ( x + ( borderSize * 6 ) )
// Height
height: channelView_id.height - ( y + ( borderSize * 6 ) )
// Visibility
visible: true
// Style
font.bold: false
font.italic: true
// Wrap-Mode
wrapMode: Text.WrapAnywhere
// Elide
elide: Text.ElideRight
}
/// Channel' Description
}
/// Channel View Layout for ListView