mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:08:08 +00:00
feat(ui/views/App/Calls/ConferenceManager): in progress
This commit is contained in:
parent
e560d4cf93
commit
2db3292b93
4 changed files with 37 additions and 19 deletions
|
|
@ -13,8 +13,4 @@ Rectangle {
|
|||
|
||||
color: TextFieldStyle.background.color.normal
|
||||
radius: TextFieldStyle.background.radius
|
||||
|
||||
ScrollableListView {
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import Linphone.Styles 1.0
|
|||
// =============================================================================
|
||||
|
||||
SearchBox {
|
||||
id: searchBox
|
||||
id: searchBar
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
readonly property alias isOpen: searchBox._isOpen
|
||||
readonly property alias isOpen: searchBar._isOpen
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -27,7 +27,10 @@ SearchBox {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
onEnterPressed: view.interpretableSipAddress.length > 0 && searchBox.launchCall(interpretableSipAddress)
|
||||
onEnterPressed: {
|
||||
var sipAddress = view.interpretableSipAddress
|
||||
return sipAddress.length > 0 && searchBar.launchCall(sipAddress)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -37,35 +40,35 @@ SearchBox {
|
|||
actions: [{
|
||||
icon: 'video_call',
|
||||
handler: function (entry) {
|
||||
searchBox.closeMenu()
|
||||
searchBox.launchVideoCall(entry.sipAddress)
|
||||
searchBar.closeMenu()
|
||||
searchBar.launchVideoCall(entry.sipAddress)
|
||||
}
|
||||
}, {
|
||||
icon: 'call',
|
||||
handler: function (entry) {
|
||||
searchBox.closeMenu()
|
||||
searchBox.launchCall(entry.sipAddress)
|
||||
searchBar.closeMenu()
|
||||
searchBar.launchCall(entry.sipAddress)
|
||||
}
|
||||
}, {
|
||||
icon: 'chat',
|
||||
handler: function (entry) {
|
||||
searchBox.closeMenu()
|
||||
searchBox.launchChat(entry.sipAddress)
|
||||
searchBar.closeMenu()
|
||||
searchBar.launchChat(entry.sipAddress)
|
||||
}
|
||||
}]
|
||||
|
||||
headerButtonDescription: qsTr('addContact')
|
||||
headerButtonIcon: 'contact_add'
|
||||
headerButtonAction: (function (sipAddress) {
|
||||
searchBox.closeMenu()
|
||||
searchBox.addContact(sipAddress)
|
||||
searchBar.closeMenu()
|
||||
searchBar.addContact(sipAddress)
|
||||
})
|
||||
|
||||
genSipAddress: searchBox.filter
|
||||
genSipAddress: searchBar.filter
|
||||
|
||||
onEntryClicked: {
|
||||
searchBox.closeMenu()
|
||||
searchBox.entryClicked(entry)
|
||||
searchBar.closeMenu()
|
||||
searchBar.entryClicked(entry)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,25 @@ ConfirmDialog {
|
|||
ScrollableListViewField {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
SipAddressesView {
|
||||
id: view
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
actions: [{
|
||||
icon: 'video_call',
|
||||
handler: function (entry) {
|
||||
console.log('toto')
|
||||
}
|
||||
}]
|
||||
|
||||
genSipAddress: filter.text
|
||||
|
||||
onEntryClicked: {
|
||||
console.log('todo2')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ QtObject {
|
|||
property int height: 420
|
||||
property int leftMargin: 35
|
||||
property int rightMargin: 35
|
||||
property int width: 680
|
||||
property int width: 740
|
||||
|
||||
property QtObject columns: QtObject {
|
||||
property QtObject selector: QtObject {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue