-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChannelItemView.qml
71 lines (60 loc) · 1.42 KB
/
ChannelItemView.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
import QtQuick 2.13
// Channel' Item View for ListView Item
Item {
// Elements Border Size
property real borderSize: 8
// Title value.
property alias titleValue: itemTitle_id.text
// Description value.
property alias descriptionValue: itemDescription_id.text
// ID
id: itemView_id
// Default Width
width: 100
// Default Height
height: 50
// Title
Text {
// ID
id: itemTitle_id
// X
x: borderSize
// Y
y: borderSize
// Text
text: "No Title"
// Style
font.bold: true
wrapMode: Text.WrapAnywhere
// Elide
elide: Text.ElideRight
// Width
width: itemView_id.width - ( x + borderSize )
// Visibility
visible: true
} /// Title
// Description
Text {
// ID
id: itemDescription_id
// Text
text: "No Description"
// Style
font.bold: false
wrapMode: Text.WrapAnywhere
// Elide
elide: Text.ElideRight
// X
x: borderSize
// Y
y: itemTitle_id.y + ( itemTitle_id.contentHeight + ( borderSize ) )
// Width
width: itemView_id.width - ( x + borderSize )
// Height
height: itemView_id.height - ( borderSize + y )
// Visibility
visible: true
}
/// Description
}
/// Channel' Item View for ListView Item