import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "../windowsList.js" as WindowsList import "../layoutList.js" as Layout import Label 2.0 HMIWindow { id : checkpassword Component.onCompleted: { windowID = WindowsList.CARLINK_CHECKPASSWORD } onVisibleChanged: { bMainWindow = false bFullWindow = true defaulttext.text = qsTr("Please input password")+systemCtrl.emptyString if(checkpassword.visible) { pwd_input.text = ""; } } HMIButton { id : back x : 600 labelText: "back" btnImg:"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+bgImageStyle onClicked: { console.log("back---------------------->>"); ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINK_SETTING) } } Text { id : title property real rate: 0.860 x : 14 ; y : 149-132 width: 150 ; height: 26 color: "white" font.family: "方正兰亭黑简体" font.pixelSize:31*title.rate text : qsTr ("Identity Verification")+systemCtrl.emptyString } Image{ id : password_background x : 80 ; y : 55 source : "qrc:MATERIAL/MATERIAL_M8X_INPUT-BOX_524"+bgImageStyle HMIInputText { id : pwd_input width:password_background.width height:password_background.height x : 5 ; y : 8 focus: false horizontalAlignment: Label.AlignLeft color: "white" font.pixelSize: 24 autoScroll: false cursorVisible:pwd_input.focus?true:false Text { id : defaulttext property real rate: 0.860 color: "grey" font.pixelSize:31*defaulttext.rate text : qsTr ("Please input password")+systemCtrl.emptyString } onContentWidthChanged: { if (pwd_input.text.length > 16) { pwd_input.text = pwd_input.text.substring(0, pwd_input.text.length - 1); } } } MouseArea { anchors.fill : parent onClicked: { pwd_input.focus = true pwd_input.text = "" pwd_input.echoMode = TextInput.Password keyBoard.opacity = 1 keyBoard.enabled = true password_background.source = "qrc:MATERIAL/MATERIAL_M8X_INPUT-BOX_524_C"+bgImageStyle defaulttext.visible = false systemCtrl.setTextInputHandle(pwd_input) } } } HMIButton { id : sure x : 80 y : 105 labelText: "OK" btnImg: sure.pressed ?"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+bgImageStyle : "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+bgImageStyle /*****naca 69921 button tone down *******/ enabled: pwd_input.text.length>0 ?true : false labelColor : pwd_input.text.length>0 ?"#FFFFFF" : "#656565" /*****naca 69921 button tone down *******/ onClicked: { if (pwd_input.text.length != 0) { console.log ("user", pwd_input.text); carlinkCtrl.check_hmi_user_psd(pwd_input.text); carlinkCtrl.setBindPopupDisplay(true); ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINK_SETTING) } } } Item { id: chinaKeyBoard x: 0 y: 572-132 HMIKeyBoard{ id: keyBoard x: 0 y: 0 opacity: 0 enabled: false iType:1 isPinyin:false /*****naca 70011*****/ iPassword : true /*****naca 70011*****/ onClickspell: { if(!keyBoard.isPinyin) { systemCtrl.setKeyPress(spell) } } } } }