LINQT-1502 add video call button magic search
This commit is contained in:
parent
5dd878dbc9
commit
64ca2feff6
1 changed files with 21 additions and 3 deletions
|
|
@ -124,8 +124,26 @@ FocusScope {
|
||||||
color: DefaultStyle.main2_200
|
color: DefaultStyle.main2_200
|
||||||
}
|
}
|
||||||
onClicked: UtilsCpp.createCall(searchResultItem.core.defaultFullAddress)
|
onClicked: UtilsCpp.createCall(searchResultItem.core.defaultFullAddress)
|
||||||
KeyNavigation.right: chatButton
|
|
||||||
KeyNavigation.left: chatButton
|
KeyNavigation.left: chatButton
|
||||||
|
KeyNavigation.right: videoCallButton
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
id: videoCallButton
|
||||||
|
Layout.preferredWidth: 45 * DefaultStyle.dp
|
||||||
|
Layout.preferredHeight: 45 * DefaultStyle.dp
|
||||||
|
icon.width: 24 * DefaultStyle.dp
|
||||||
|
icon.height: 24 * DefaultStyle.dp
|
||||||
|
icon.source: AppIcons.videoCamera
|
||||||
|
focus: visible && !callButton.visible
|
||||||
|
contentImageColor: DefaultStyle.main2_500main
|
||||||
|
background: Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
radius: 40 * DefaultStyle.dp
|
||||||
|
color: DefaultStyle.main2_200
|
||||||
|
}
|
||||||
|
onClicked: UtilsCpp.createCall(searchResultItem.core.defaultFullAddress, {'localVideoEnabled': true})
|
||||||
|
KeyNavigation.left: callButton
|
||||||
|
KeyNavigation.right: chatButton
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id: chatButton
|
id: chatButton
|
||||||
|
|
@ -135,15 +153,15 @@ FocusScope {
|
||||||
icon.width: 24 * DefaultStyle.dp
|
icon.width: 24 * DefaultStyle.dp
|
||||||
icon.height: 24 * DefaultStyle.dp
|
icon.height: 24 * DefaultStyle.dp
|
||||||
icon.source: AppIcons.chatTeardropText
|
icon.source: AppIcons.chatTeardropText
|
||||||
focus: visible && !callButton.visible
|
focus: visible && !callButton.visible && !videoCallButton.visible
|
||||||
contentImageColor: DefaultStyle.main2_500main
|
contentImageColor: DefaultStyle.main2_500main
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 40 * DefaultStyle.dp
|
radius: 40 * DefaultStyle.dp
|
||||||
color: DefaultStyle.main2_200
|
color: DefaultStyle.main2_200
|
||||||
}
|
}
|
||||||
|
KeyNavigation.left: videoCallButton
|
||||||
KeyNavigation.right: callButton
|
KeyNavigation.right: callButton
|
||||||
KeyNavigation.left: callButton
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PopupButton {
|
PopupButton {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue