v0.6.4 contact search
This commit is contained in:
parent
66e5c33b00
commit
5032c78de1
57 changed files with 2218 additions and 2252 deletions
|
@ -38,6 +38,7 @@ Rectangle {
|
|||
id:searchComponent
|
||||
color: Material.backgroundColor
|
||||
radius:0.5*mm
|
||||
property bool selfdestroying:false
|
||||
/* anchors.left: parent.left
|
||||
anchors.leftMargin:mm
|
||||
anchors.top:parent.top
|
||||
|
@ -54,7 +55,10 @@ Rectangle {
|
|||
anchors.fill: parent
|
||||
selectByMouse: true
|
||||
cursorVisible: false
|
||||
onEditingFinished:{ if (displayText!=""){search(displayText)};searchComponent.destroy()}
|
||||
onAccepted:{
|
||||
if (displayText!=""){search(displayText)};
|
||||
if(selfdestroying){searchComponent.destroy()}
|
||||
}
|
||||
}
|
||||
Component.onCompleted: searchText.forceActiveFocus()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue