blob: c59822667de90eb93eec7cc0d6ab1267bdf96b47 (
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
89
90
91
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../eventsList.js" as EventsList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import Label 2.0
HMIWindow{
id:nameList_page
property bool isFullScreen : false
Component.onCompleted:
{
console.log("***********************************tboxAutoLogin_root onCompleted***********************************")
windowID = WindowsList.CARLINK_NAMELIST_POPUP
}
onVisibleChanged:
{
bMainWindow = true
}
HMILabel
{
x:34
y:140-132
height: 58
width:620
anchors.leftMargin: 20
horizontalAlignment: Label.AlignLeft
text:qsTr("Please select telematics ID")+systemCtrl.emptyString
font.pixelSize: 28
color:"white"
}
ListView{
id: nameListView
x: 34
y: 190-132
width: 620
height: isFullScreen? 638:254
model: carlinkCtrl.getUsrNameListOfAutoLogin()
delegate: listCmp
interactive: true
snapMode: ListView.SnapOneItem
focus: true
highlightFollowsCurrentItem: true
highlightRangeMode: ListView.StrictlyEnforceRange
spacing: 2
clip: true
}
Component
{
id:listCmp
HMIButton
{
id:nameBtn
x:0
y:0
width:620
height:62
btnImg: nameBtn.pressed ? "qrc:MATERIAL/MATERIAL_M8X_LIST_P"+bgImageStyle
: "qrc:MATERIAL/MATERIAL_M8X_LIST"+bgImageStyle
HMILabel
{
anchors.fill: parent
anchors.leftMargin: 20
horizontalAlignment: Label.AlignLeft
text:modelData.name
color:"white"
font.pixelSize: 24
}
onClicked:
{
console.log("[TBoxAutoLogin_nameListPopup][nameBtn][onClicked]-->index:",index)
carlinkCtrl.requestAutoLogin(modelData.name, carlinkCtrl.macAddrOfBTDevice,carlinkCtrl.getVinOfMachine())
ScreenManager.hideOverlay(WindowsList.CARLINK_NAMELIST_POPUP);
}
}
}
}
|