Commit 2db3292b authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/ConferenceManager): in progress

parent e560d4cf
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment