blob: 2f8e452aa1d211e98b7b08e93d90a8e5cd92e3c4 (
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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
import QtQuick 2.0
import Label 2.0
import "../com/neusoft/auto/widgets"
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
Item
{
property int iYear: settingCtrl.iYear
property int iMonth: settingCtrl.iMonth
property int iDay: settingCtrl.iDay
Item
{
id:hometodaybar
x:797
y:52
width: 140
height: 51
HMILabel
{
id: date
x:-25
y:25//time.y//139-70 //106-70
//FOD #122439 2016/10/19 LIDUO begin
width:165
//width: 121
//FOD #122439 2016/10/19 LIDUO end
height:26
//ADD F0033 2016/10/12 liduo begin
color: "white"
font.pixelSize:22
horizontalAlignment: Text.AlignRight
Timer
{
interval: 1000
running: visible
repeat: true
triggeredOnStart: true
onTriggered:
{
var mouth=""
var day=""
//update by zlx 2019/3/8 #315774 begin
if((iYear > 2017)&&(iYear < 2038))
//update by zlx 2019/3/8 #315774 begin
{
if(iMonth > 9)
{
mouth = iMonth;
}
else
{
mouth = "0"+iMonth;
}
if(iDay > 9)
{
day = iDay;
}
else
{
day = "0"+iDay;
}
parent.text =day+"/"+mouth +"/"+iYear
}
//add by plc for #321777
else
{
console.log("@ZLX**text.date*else*TIME**iYear=**"+iYear+"\n")
console.log("@ZLX**text.date*else*TIME**iMonth=**"+iMonth+"\n")
console.log("@ZLX**text.date*else*TIME**iDay=**"+iDay+"\n")
parent.text = "-"+"-"+"/"+"-"+"-"+"/"+"-"+"-"+"-"+"-"
}
}
}
}
HMILabel
{
id: week
x:-25
y:0//139-70
width: 165
height: 25
color: "white"
font.pixelSize: 22
horizontalAlignment: Text.AlignRight
Timer
{
interval: 1000
running: visible?true:false
repeat: true
triggeredOnStart: true
onTriggered:
{
if(iYear < 2038)
{
parent.text =systemCtrl.sysGetWeeksName(iYear,iMonth,iDay)
}
else
{
parent.text = ""
}
}
}
}
HMIMouseArea
{
id:tadaybar_mousearea
x:-25
y:0
width: 165
height: 51
onClicked:
{
settingCtrl.bTimeBackVisible=true;
ScreenManager.changeForm(Layout.ACT_HOME,WindowsList.SETTING_TIME_DATE);
systemCtrl.setActionFlagForCarPlay(true)//add by menghui for CarPlay 2018/10/12
// console.log("getActionFlagForCarPlay="+systemCtrl.getActionFlagForCarPlay()+"111111111111111")//add menghui
}
onPressed:
{
date.color = "#ff7081"
week.color = "#ff7081"
}
onReleased:
{
date.color = "white"
week.color = "white"
}
onCanceled:
{
date.color = "white"
week.color = "white"
}
}
}
}
|