import QtQuick 2.0 import "../../eventsList.js" as EventsList import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../../Setting/Settinglist.js" as Settinglist import Label 2.0 import LabelInput 2.0 HMIWindow { id: nameSearchWindow property int curContactIndex: 0 //ADD #144876 2017/01/17 wangshuang begin property bool searchListState: false property bool handWriteState: false property bool keyBoardState: false property bool outgoingcallstatus:false property bool incommingcallstatus:false //ADD #144876 2017/01/17 wangshuang end //ADD #171487 2017/05/04 wangs begin property bool bysearchBtnEnterBTPSearch:false //ADD #171487 2017/05/04 wangs end Component.onCompleted: { windowID = WindowsList.BTP_SEARCH } onVisibleChanged: { bFullWindow = true renameLable.setTextInputHandle() //systemCtrl.setTextInputHandle(nameSearchInput) //FOD #144876 2017/01/17 wangshuang begin //nameSearch_keyBoard.visible =true //bKeyboardVisiable =false //ADD #162779 2017/04/25 wangs begin if(visible == true) { bNoSwitchBarVisiable = true if(bysearchBtnEnterBTPSearch == true) { nameSearch_keyBoard.visible = true bKeyboardVisiable = true keyBoardState = false handWriteState = false searchListState = false } } //ADD #162779 2017/04/25 wangs end if((true == keyBoardState)||(true == handWriteState) ) { nameSearch_keyBoard.visible =false bKeyboardVisiable =false } else { nameSearch_keyBoard.visible = true bKeyboardVisiable = true } if (true == searchListState) { nameSearch_list_view.visible = true }else { nameSearch_list_view.visible = false } //FOD #144876 2017/01/17 wangshuang end bNoSwitchBarVisiable = true if(visible == false) { btCtrl.btpSearchSavedState = renameLable.labelInputAssembly.text//btCtrl.btpSearchSavedState = nameSearchInput.text //Mod #327884 rxl 2019/04/02 start if((outgoingcallstatus==false)&&(incommingcallstatus==false)) { renameLable.labelInputAssembly.text = ""//nameSearchInput.text = "" } //Mod #327884 rxl 2019/04/02 end } //ADD #105313 2016/12/07 liduo begin if(handWrite.visible==true) bhandwritebar=true if(keyBoard.visible==true) bhandwritebar=false if(handWrite.changecanvas==false) { handWrite.changecanvas=true } //ADD #105313 2016/12/07 liduo end } onCloseWindow: { if (closeType == Layout.CLOSE_BY_CLOSE) { // console.log("#######btp_search.qml : onCloseWindow:CLOSE_BY_CLOSE") renameLable.labelInputAssembly.text = ""//nameSearchInput.text = "" btCtrl.btpSearchSavedState = "" } else if (closeType == Layout.CLOSE_BY_OPEN) { // console.log("#######btp_search.qml : onCloseWindow:CLOSE_BY_OPEN") } //ADD #171487 2017/05/04 wangs begin btCtrl.setEnterBTPSearchState(false) //ADD #171487 2017/05/04 wangs end //ADD #144876 2017/01/17 wangshuang begin if((outgoingcallstatus==false)&&(incommingcallstatus==false)) { searchListState = false keyBoardState = false handWriteState = false } outgoingcallstatus=false incommingcallstatus=false //ADD #144876 2017/01/17 wangshuang end } HMIButton { id:nameSearchBack_button x: 0//3 y: 5//-4 width: 138//130 height: 70//80 //btnImg:nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON"+bgImageStyle Image { id:nameSearchBack_image x:5//20//12 y:8//y:20 width: 50//20//24 height:64//34//40 //FOD 2018/10/10 by wyc begin //source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle source: nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle //FOD 2018/10/10 by wyc end anchors.verticalCenter:parent.verticalCenter } HMILabel { id:nameSearchBack_label x:54//58//36 y:25 //Fod #F0017 2016/10/11 wangshuang begin width: 150//90//64//60//98 //Fod #F0017 2016/10/11 wangshuang end height:38//30//35 text: qsTr("Back")+ systemCtrl.emptyString font.pixelSize: 30 anchors.verticalCenter:parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { //FOD 2018/09/26 by wangyuecheng for changeForm begin //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_CONTACT) ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_CONTACT) //FOD 2018/09/26 by wangyuecheng for changeForm end renameLable.labelInputAssembly.text = ""//nameSearchInput.text = "" btCtrl.btpSearchSavedState = "" //ADD #144876 2017/01/17 wangshuang begin searchListState = false keyBoardState = false handWriteState = false //ADD #144876 2017/01/17 wangshuang end } } Image { id: nameSearchInput_bg //Fod #F0008 2016/10/10 wangshuang begin x: 58//55 y: 81//73 width:842 height:78 //Fod #141091 2016/12/29 wangshuang begin source:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle//"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle//nameSearchInput_bg.pressed?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle) //:("qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle)//"qrc:MATERIAL/MATERIAL_M8X_INPUT-BOX_700_C"+bgImageStyle //Fod #141091 2016/12/29 wangshuang end } //ADD F0055 2017/1/18 mengyufeng begin Rectangle { id:input_background x: 58//55 y: 81//73 width:842 height:78 color: "#161616"//"#130f0f" //Fod #171867 2017/05/08 wangs } //ADD F0055 2017/1/18 mengyufeng end //ADD #154981 2017/03/14 wangs begin HMIMouseArea{ anchors.left:input_background.left anchors.top: input_background.top height:78 width:(nameSearchClear_button.visible==true)?764:842 //Fod #175036 2017/05/22 wangs onClicked: { if(false == nameSearch_keyBoard.visible) { nameSearch_keyBoard.visible = true bKeyboardVisiable = true } if(handWrite.visible==true) bhandwritebar=true if(keyBoard.visible==true) bhandwritebar=false if(handWrite.changecanvas==false) handWrite.changecanvas=true } } //ADD #154981 2017/03/14 wangs end //DEL designchange 2017/04/17 wangs begin //ADD #148854 2017/03/13 wangs begin // Flickable { // id: flick // x:141 // y:81 // width: 632 // height: 78 // flickableDirection:Flickable.HorizontalFlick // contentWidth: nameSearchInput.contentWidth // contentHeight: nameSearchInput.contentHeight // clip: true // interactive:true // boundsBehavior: Flickable.StopAtBounds // function ensureVisible(r) // { // if (contentX >= r.x) // contentX = r.x; // else if (contentX+width <= r.x+r.width) // contentX = r.x+r.width-width; // if (contentY >= r.y) // contentY = r.y; // else if (contentY+height <= r.y+r.height) // contentY = r.y+r.height-height; // } //DEL designchange 2017/04/17 wangs end /* //DEL ... 2017/05/16 wangs begin TextInput { id: nameSearchInput //ADD designchange 2017/04/17 wangs begin x: 141//134 y: 81//73 //ADD designchange 2017/04/17 wangs end //Fod #F0008 2016/10/10 wangshuang end anchors.verticalCenter: nameSearchInput_bg.verticalCenter width: 632//(632>nameSearchInput.contentWidth)?632:nameSearchInput.contentWidth//632 //Fod designchange 2017/04/17 wangs begin //ADD #145220 mengyufeng 20170125 begin height: 78//33 //ADD #145220 mengyufeng 20170125 end font.pixelSize: 30 readOnly: false enabled: true clip: true //ADD designchange 2017/04/17 wangs //Fod #F185 2017/03/01 wangshuang begin horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter //Fod #F185 2017/03/01 wangshuang end text:"" maximumLength: 30 //ADD F0055 2017/1/18 mengyufeng begin color: "#130f0f" font.family:"方正兰亭黑简体" selectedTextColor:"#676767" //ADD F0055 2017/1/18 mengyufeng end //ADD #F0148 2017/1/10 wangshuang begin selectionColor: "#676767" //ADD #F0148 2017/1/10 wangshuang end cursorVisible:true //ADD F0055 2017/1/18 mengyufeng begin //onCursorRectangleChanged:flick.ensureVisible(cursorRectangle) //DEL designchange 2017/04/17 wangs cursorDelegate:mCursorDelegate //ADD #161705 2017/4/11 ld begin onTextChanged: { if(nameSearchInput.text=="") systemCtrl.clearPinyinSearchInfo() } //ADD #161705 2017/4/11 ld end Component { id:mCursorDelegate Rectangle { id:mCursorRectangle color: "white" height: nameSearchInput.cursorRectangle.height width: nameSearchInput.cursorRectangle.width Timer { running: true repeat: true interval: 800 onTriggered: { mCursorRectangle.visible = ! mCursorRectangle.visible } } } } Label { id:nameSearchLable x:(nameSearchInput.contentWidth>nameSearchInput.width)?0-(nameSearchInput.contentWidth-nameSearchInput.width):0 y:0 //FOD #145220 mengyufeng 20170125 begin height: 78//33 //FOD #145220 mengyufeng 20170125 end width: 632//842 //Fod designchange 2017/04/17 wangs text:nameSearchInput.text font.family:"方正兰亭黑简体" color: "white" font.pixelSize: 30 horizontalAlignment: Label.AlignLeft verticalAlignment: Label.AlignVCenter } //ADD F0055 2017/1/18 mengyufeng end HMIMouseArea{ anchors.fill: parent //DEL #105313 2016/12/07 liduo begin //visible: !nameSearch_keyBoard.visible //enabled: !nameSearch_keyBoard.visible //DEL #105313 2016/12/07 liduo end onClicked: { //ADD #105313 2016/12/07 liduo begin nameSearchInput.cursorPosition = nameSearchInput.positionAt(mouseX,mouseY) //DEL #105313 2016/12/07 liduo begin //if(handWrite.visible==true) // bhandwritebar=true //if(keyBoard.visible==true) // bhandwritebar=false //if(handWrite.changecanvas==false){ // handWrite.changecanvas=true //} //DEL #105313 2016/12/07 liduo end //ADD #105313 2016/12/07 liduo end if(false == nameSearch_keyBoard.visible) { // console.debug("2$$$$$$$$$$$$") nameSearch_keyBoard.visible = true bKeyboardVisiable = true //ADD #144876 2017/01/17 wangshuang begin keyBoardState = false handWriteState = false //ADD #144876 2017/01/17 wangshuang end } //ADD #175036 2017/05/17 wangs //ADD #105313 2016/12/07 liduo begin if(handWrite.visible==true) bhandwritebar=true if(keyBoard.visible==true) bhandwritebar=false if(handWrite.changecanvas==false){ handWrite.changecanvas=true } //ADD #105313 2016/12/07 liduo end //} //DEL #175036 2017/05/17 wangs //ADD #145225 2017/01/18 wangs begin systemCtrl.pinyinsreachclear() //ADD #145225 2017/01/18 wangs end } //ADD #146526 2017/02/22 wangs begin onDoubleClicked: { systemCtrl.doubleClickChooseAll() } //ADD #146526 2017/02/22 wangs end } //Fod #144873 2017/01/12 wangshuang begin onCursorPositionChanged: { if(nameSearchInput.text.length == 30) { keyBoard.maximumState = true } else if(nameSearchInput.text.length < 30) { keyBoard.maximumState = false } if (""!=nameSearchInput.text) { nameSearchClear_button.visible=true } else { nameSearchClear_button.visible=false } } } //DEL ... 2017/05/16 wangs end */ //}//DEL designchange 2017/04/17 wangs //ADD #148854 2017/03/13 wangs end HMILabelInput { id:renameLable x: 141 height: 78 width: 632 labelInputAssembly.font.pixelSize:30 labelInputAssembly.selecteColor:"#676767" labelInputAssembly.maximumLength:30 anchors.verticalCenter: nameSearchInput_bg.verticalCenter onLableSingleClickSignal: { if(false == nameSearch_keyBoard.visible) { nameSearch_keyBoard.visible = true bKeyboardVisiable = true keyBoardState = false handWriteState = false } if(handWrite.visible==true) { bhandwritebar=true } if(keyBoard.visible==true) { bhandwritebar=false } if(handWrite.changecanvas==false) { handWrite.changecanvas=true } } onLableDoubleClickSignal: { systemCtrl.doubleClickChooseAllForLableInput(renameLable.labelInputAssembly.text.length) } onLableTextChanged: { if(renameLable.labelInputAssembly.text.length == 30) { keyBoard.maximumState=true } else if(renameLable.labelInputAssembly.text.length < 30) { keyBoard.maximumState=false } if (""!=renameLable.labelInputAssembly.text) { nameSearchClear_button.visible=true } else { nameSearchClear_button.visible=false } } onLableMaxLengthSignal: { if(renameLable.labelInputAssembly.text.length == 30) { keyBoard.maximumState=true } else if(renameLable.labelInputAssembly.text.length < 30) { keyBoard.maximumState=false } if (""!=renameLable.labelInputAssembly.text) { nameSearchClear_button.visible=true } else { nameSearchClear_button.visible=false //modify by Jiyulong for #177709 start 2017/5/25 systemCtrl.clearPinyinSearchInfo() //modify by Jiyulong for #177709 end } } } HMIButton { id:nameSearchClear_button x: 822//835 visible:false anchors.verticalCenter: nameSearchInput_bg.verticalCenter btnImg:nameSearchClear_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR"+bgImageStyle onClicked: { renameLable.labelInputAssembly.text = ""//nameSearchInput.text = "" //ADD #145225 2017/1/22 ld begin systemCtrl.clearPinyinSearchInfo() //ADD #145225 2017/1/22 ld end } } //Fod #144873 2017/01/12 wangshuang end HMIListView { id: nameSearch_list_view //Fod #F0008 2016/10/10 wangshuang begin x: 58//25 y: 161//152 //Fod #F0008 2016/10/10 wangshuang end //Fod #F0144 2016/12/22 wangshuang begin width: 895//922 //Fod #F0144 2016/12/22 wangshuang end //Fod #145016 2017/01/12 wangshuang begin //Fod #121463 2016/10/13 wangshuang begin height: (true == nameSearch_keyBoard.visible)?(bhandwritebar==true?560:320):720//(true == nameSearch_keyBoard.visible)?320:720//328:731//(true == nameSearch_keyBoard.visible)?408:731//574 //Fod #121463 2016/10/13 wangshuang end //Fod #145016 2017/01/12 wangshuang end spacing: 2 rightMargin:16 scrollBar:true scrollBar_edge:0 scrollBar_width:8//4 scrollBar_img:"qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR"+bgImageStyle model:btCtrl.btPhoneBookSearchListModel delegate: phone_Number snapMode:ListView.SnapToItem boundsBehavior: Flickable.StopAtBounds focus: true } Component { id: phone_Number HMIButton { id:contact_List //DEL #F0008 2016/10/10 wangshuang begin //x: 30 //y: 150 //DEL #F0008 2016/10/10 wangshuang begin enabled: col1=='1'?false:true height: 78 //Fod #F0018 2016/10/11 wangshuang begin //btnImg:(contact_List.pressed)?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle)//"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle btnImg:pressed?("qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle) // Image // { // height: 78 // visible: (curContactIndex == index) ? true:false // source:(contact_List.pressed)?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle) // } //Fod #F0018 2016/10/11 wangshuang end Item { //Fod #F0013 2016/10/11 wangshuang begin id:uptext//add by ZhangLiXin #348330 x:84//80//col6=='1'?73-34:52-34 y:7//8 //Fod #F0013 2016/10/11 wangshuang end width: 610//670-60 height: 38//37 HMILabel { id:uplabeltext//add by ZhangLiXin #348330 anchors.fill: parent font.pixelSize:30 text:col7//(col1 == '3')?(col0):(col7==""?col0:(col7+" "+col0)) //ADD #145220 mengyufeng 20170125 begin wtitesize:2 //ADD #145220 mengyufeng 20170125 begin horizontalAlignment: Label.AlignLeft elide:Label.ElideRight } } Item { //Fod #F0013 2016/10/11 wangshuang begin x:84//80 y:39//35 //Fod #F0013 2016/10/11 wangshuang end width: 610//670-60 height: 37 HMILabel { id:downtext//add by ZhangLiXin #348330 anchors.fill: parent font.pixelSize:22 wtitesize:1 text://(col7 == "")?"":col0//col0//(col1 == '3')?(col0):(col7==""?col0:(col7+" "+col0)) { //update by ZhangLiXin #348330 if(col7 != "") { col0 } else { uplabeltext.text = col0 uptext.height = 75 uptext.y = 0 uplabeltext.verticalAlignment = Label.verticalAlignment downtext.text = "" } } //Fod #F0013 2016/10/11 wangshuang begin color:(contact_List.pressed)?"white":"#808080" //Fod #F0013 2016/10/11 wangshuang end horizontalAlignment: Label.AlignLeft elide:Label.ElideRight } } onPressed: { if( true == btCtrl.btConnectState ) { if (curContactIndex != index) { curContactIndex = index } } } onClicked: { btCtrl.outGoingCall(col0) } } } //Add #129445 2016/11/30 wangs begin MouseArea { id:scroolbarcover //Fod #F185 2017/02/06 wangshuang begin x:900//58+842 //Fod #F185 2017/02/06 wangshuang end y:161 width:60 height: (true == nameSearch_keyBoard.visible)?320:720 } //Add #129445 2016/11/30 wangs end Item { id:nameSearch_keyBoard //DEL: stbug#163674 wudm 2017/04/07 begin //x: -2 //DEL: stbug#163674 wudm 2017/04/07 end y: 562 transformOrigin: Item.TopLeft //scale:1.25 HMIKeyBoard { id: keyBoard enabled:true iSerach: true onClickspell: { if(!keyBoard.isPinyin) systemCtrl.setKeyPress(spell) } onSearchStart: { //Fod #145404 2017/02/23 wangs begin //Fod #319581 sxd 2019/01/25 start if((renameLable.labelInputAssembly.text != "") && (checkChar(renameLable.labelInputAssembly.text)==true))//nameSearchInput.text != "" //Fod #319581 sxd 2019/01/23 end { nameSearch_keyBoard.visible = false btCtrl.btPhoneBookSearchInfo(renameLable.labelInputAssembly.text)//nameSearchInput.text //ADD #144876 2017/01/17 wangshuang begin searchListState = true keyBoardState = true //ADD #144876 2017/01/17 wangshuang end nameSearch_list_view.visible = true bKeyboardVisiable = false } //Fod #145404 2017/02/23 wangs end //Mod #327883 rxl 2019/04/02 start else if((renameLable.labelInputAssembly.text != "") && (checkChar(renameLable.labelInputAssembly.text)==false)) { btCtrl.phoneBookSearchListModelClear() } //Mod #327883 rxl 2019/04/02 end } onHandwriteborad: { keyBoard.visible=false handWrite.visible=true //ADD #105313 2016/12/07 liduo begin bhandwritebar=true //ADD #105313 2016/12/07 liduo end } onCloseKeyBoardSignal: { nameSearch_keyBoard.visible=false; bKeyboardVisiable = false //ADD #144876 2017/01/17 wangshuang begin keyBoardState = true //ADD #144876 2017/01/17 wangshuang end //ADD #105313 2016/12/07 liduo begin bhandwritebar=false //ADD #105313 2016/12/07 liduo end } } HMIHandWrite{ id:handWrite y: 0 iSerach: true visible: false onKeyborad: { // console.log("#############################################") keyBoard.iType=itype keyBoard.visible=true handWrite.visible=false //ADD #105313 2016/12/07 liduo begin bhandwritebar=false //ADD #105313 2016/12/07 liduo end } onCloseKeyBoardSignal: { nameSearch_keyBoard.visible=false; bKeyboardVisiable = false //ADD #105313 2016/12/07 liduo begin bhandwritebar=false //ADD #105313 2016/12/07 liduo end //ADD #144876 2017/01/17 wangshuang begin handWriteState =true //ADD #144876 2017/01/17 wangshuang end } onSearchStart: { //Fod #145404 2017/02/23 wangs begin if(renameLable.labelInputAssembly.text != "")//nameSearchInput.text != "" { nameSearch_keyBoard.visible = false btCtrl.btPhoneBookSearchInfo(renameLable.labelInputAssembly.text)//nameSearchInput.text //ADD #144876 2017/01/17 wangshuang begin searchListState = true handWriteState =true //ADD #144876 2017/01/17 wangshuang end nameSearch_list_view.visible = true bKeyboardVisiable = false } //Fod #145404 2017/02/23 wangs end } } } Connections { target:btCtrl onBtConnectStatusChanged: { if( false == btCtrl.btConnectState ) { if(nameSearchWindow.visible == true) { //FOD 2018/09/26 by wangyuecheng for changeForm begin //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_HOME) //Mod #316372 2019/01/09 sxd start ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_CONTACT) //Mod #316372 2019/01/09 sxd end //FOD 2018/09/26 by wangyuecheng for changeForm end } } //ADD 2019/02/19 by wyc FOR 320139 begin else if (false == btCtrl.btserviceIsHFP) { if(nameSearchWindow.visible == true) { ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_HOME) } } //ADD 2019/02/19 by wyc FOR 320139 end } onBtOutGoingCallChanged: { //Fod #162108 2017/03/31 wangs begin if(nameSearchWindow.visible==true) { outgoingcallstatus=true } //Fod #162108 2017/03/31 wangs end } onBtIncommingCallChanged: { //Fod #162108 2017/03/31 wangs begin if(nameSearchWindow.visible==true) { incommingcallstatus=true } //Fod #162108 2017/03/31 wangs end } //ADD #162108 2017/03/31 wangs begin onBtTeminateCallChanged: { if(outgoingcallstatus == true) { outgoingcallstatus = false } if(incommingcallstatus == true) { incommingcallstatus = false } } //ADD #162108 2017/03/31 wangs end //ADD #171487 2017/05/04 wangs begin onBtEnterBTPSearchStateChanged: { bysearchBtnEnterBTPSearch = btCtrl.btSearchBtnEnterBTPSearch } //ADD #171487 2017/05/04 wangs end } Connections { target:ScreenManager // onBtHungupPageReset://del by lium for screenchange begin // { // renameLable.labelInputAssembly.text=btCtrl.btpSearchSavedState//nameSearchInput.text=btCtrl.btpSearchSavedState // //ADD #144876 2017/01/17 wangshuang begin // if (true == searchListState){ // nameSearch_list_view.visible = true // }else{ // nameSearch_list_view.visible = false // } // if ((true == keyBoardState)||(true == handWriteState)){ // nameSearch_keyBoard.visible=false // bKeyboardVisiable = false // }else{ // nameSearch_keyBoard.visible=true // bKeyboardVisiable = true // } // //ADD #144876 2017/01/17 wangshuang end // }//del by lium for screenchange end } Connections { target:keyBoard onDelKeyLongPressed: { //FOD 2019/03/14 by wyc FOR 322050 begin //renameLable.labelInputAssembly.text = "" var temp = renameLable.labelInputAssembly.text; renameLable.labelInputAssembly.text = temp.substring(renameLable.labelInputAssembly.cursorPos,temp.length); renameLable.labelInputAssembly.cursorPos = 0; //FOD 2019/03/14 by wyc FOR 322050 end } } Connections { target:handWrite onDelKeyLongPressed: { renameLable.labelInputAssembly.text = "" } } //Add #319581 sxd 2019/01/25 start function checkChar(spell) { var regEn = /[-`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im, regCn = /[-·!#¥(——):;“”‘、,|《。》?、【】[\]]/im; if(regEn.test(spell) || regCn.test(spell)) { return false } return true } //Add #319581 sxd 2019/01/23 end }