summaryrefstree
path: root/usr/bin/qml/OverLay/USB_overcurrent_Popup.qml
blob: c430b111caa0ef810489055724418ea4de6a887c (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
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

HMIMask
{
    id:usb_overcurrent

    widowsType: Layout.POP_TYPE
    
    property string bgImageStyle: systemCtrl.style

//    MouseArea
//    {
//        anchors.fill: parent
//    }

    Image
    {
        x:0//58
        y:317//419
        width:960//844
        height:556//360 //352
        source: "qrc:MATERIAL/MATERIAL_POPUP_BG_H556"+bgImageStyle
    }

    HMILabel
    {
        y: 472
        width: 720
        height: 38
        font.pixelSize: 30//28
        anchors.horizontalCenter: parent.horizontalCenter
        text: qsTr("USB defect,") + systemCtrl.emptyString
    }
    HMILabel
    {
        y: 532
        width: 800//720
        height: 38
        font.pixelSize: 30//28
        anchors.horizontalCenter: parent.horizontalCenter
        text: qsTr("please restart your car to repair.") + systemCtrl.emptyString
    }

    HMIButton
    {
        id:icon_OK
        x:356
        y:652
        width: 248
        height: 98
        labelText: qsTr("OK") + systemCtrl.emptyString
        btnImg: icon_OK.pressed?("qrc:MATERIAL/MATERIAL_POPUP_BUTTON_P"+bgImageStyle)
                                 :("qrc:MATERIAL/MATERIAL_POPUP_BUTTON"+bgImageStyle)
        onClicked:
        {
            ScreenManager.hideOverlay(WindowsList.USB_OVERCURRENT)
        }
    }
}