summaryrefstree
path: root/usr/bin/qml/Setting/Setting_APPasswdMessage.qml
blob: 9e92e6ecf7228785a4982d985d34fd9ed643972b (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
import QtQuick 2.0
import Label 2.0//ADD #F0182 2017/02/03 baojinfeng begin
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout

HMIMask
{
    id:appasswd_message
    x:0
    y:0//40
    //width: 768//740
    //height: 858//696
    widowsType:Layout.MESSAGE_TYPE
    formId:WindowsList.SETTING_APPASSWD_MESSAGE
    Component.onCompleted:
    {
        //windowID = WindowsList.SETTING_APPASSWD_MESSAGE//FOD #126239 2106/11/30 BAOJINFENG begin
    }
    onVisibleChanged:
    {
        if(appasswd_message.visible == true)
        {
            //FOD #126239 2106/12/05 BAOJINFENG begin
            //            if(screenShotSwt == true)
            //            {
            //                //do nothing
            //            }
            //            else
            //            {
            messggeTimer.start()
            //            }
            //FOD #126239 2106/12/05 BAOJINFENG end
        }
        else
        {
            messggeTimer.stop()
        }
    }
    Image
    {
        //FOD 2106/10/26 BAOJINFENG begin
        id: im_itemBackground
        x:58
        y:419
        width:844
        height:352
        source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle
        //FOD 2106/10/26 BAOJINFENG END

        HMIMouseArea
        {
            anchors.fill: parent
            bBeep:false

            onClicked:
            {
                ScreenManager.hideOverlay(WindowsList.SETTING_APPASSWD_MESSAGE)
            }
        }
    }
    HMILabel
    {
        id:label_text
        x:120
        //fod F0182 liuming 20170206 begin
        //y:580-5//480  //Fod #F0145 2017/1/6 liuming end
        y:575
        //fod F0182 liuming 20170206 end
        width:720
        height:40//50//FOD 2106/10/26 BAOJINFENG begin  //Fod #F0145 2017/1/6 liuming end
        text:qsTr("The password should contain 8 -20 characters") + systemCtrl.emptyString
        font.pixelSize:30
        //DEL F0192 2017/2/6 BAOJINFENG begin
        //horizontalAlignment: Text.AlignHCenter
        //verticalAlignment: Text.AlignVCenter//FOD 2106/10/26 BAOJINFENG begin
        //DEL F0192 2017/2/6 BAOJINFENG end
    }

    Timer
    {
        id:messggeTimer
        interval: 3000
        running: false
        repeat: false

        onTriggered:
        {
            ScreenManager.hideOverlay(WindowsList.SETTING_APPASSWD_MESSAGE)
        }
    }
}