blob: d65483e529b2671d29bcd269da4f6929657aaef4 (
plain)
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
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import Label 2.0
Item{
width: 740
height: 200
/*
HMILabel{
id:title
x:52
y:5
height: 30
width :400
font.pixelSize:26
horizontalAlignment: Label.AlignLeft
text : qsTr ("Telematics Message")+systemCtrl.emptyString
}
Component{
id : model_delegate
Image {
id: item_bkImg
width: 700
height: 62
source: "qrc:MATERIAL/MATERIAL_M8X_LIST_OLD"
HMILabel
{
id: msg
x:17+20
y:20-5
height: 30
width :250
font.pixelSize:24
horizontalAlignment: Label.AlignLeft
text : qsTr(modelData.itemtext) + systemCtrl.emptyString
}
HMIButton{
id : look
x : 488
y:3
btnImg: look.pressed ?"qrc:MATERIAL/MATERIAL_M8X_EDIT_BUTTON_P_OLD"
: "qrc:MATERIAL/MATERIAL_M8X_EDIT_BUTTON_OLD"
labelText : qsTr("Open")+systemCtrl.emptyString
onClicked: {
if (modelData.itemtype === 5){
//systemCtrl.changeApp(Layout.HMI_APP_NAVI)
}
}
}
HMIButton{
id : ignore
x : 598
y:3
labelText : qsTr("Ignore")+systemCtrl.emptyString
btnImg: ignore.pressed ?"qrc:MATERIAL/MATERIAL_M8X_EDIT_BUTTON_P_OLD"
: "qrc:MATERIAL/MATERIAL_M8X_EDIT_BUTTON_OLD"
onClicked: {
console.log("------->>index:",index)
carlinkCtrl.ignoreItem(index)
}
}
}
}
ListView {
id : list
x : 34-14 ;
y : 50
height: 500
model : carlinkCtrl.getNewMsgList()
delegate : model_delegate
spacing : 3
}
Connections{
target: carlinkCtrl
onSigNewMsgListChanged :
{
console.log ("message list changed")
list.model = carlinkCtrl.getNewMsgList()
}
}
*/
}
|