summaryrefstree
path: root/usr/bin/qml/Carlink/Userlogout.qml
blob: 301ce90d7026373c0f226e50dcd552d267a6b269 (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
import QtQuick 2.0
import "../com/neusoft/auto/widgets"


Item {
    width: 740-(51-14)
    height: 62
    HMIButton{
        id : btn
        x : -17
        y : -17
        btnImg:btn.pressed? "qrc:MATERIAL/MATERIAL_M8X_LIST_P"+systemCtrl.style
                                                   : "qrc:MATERIAL/MATERIAL_M8X_LIST"+systemCtrl.style
        onClicked: {
            console.log("logout button clicked");
            carlinkCtrl.set_hmi_user_logout();
        }
    }
    Text {
			property real rate: 0.860
            id : label
			height : 30
			width :  250
			color: "white"
		    font.family: "方正兰亭黑简体"
		    font.pixelSize:31*label.rate
            text : qsTr("Logout")+systemCtrl.emptyString
    }


//    MouseArea{
//            anchors.fill : parent
//            onClicked: {
//                console.log("logout button clicked");
//                carlinkCtrl.set_hmi_user_logout();
//            }

//    }
}