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 { ...@@ -13,8 +13,4 @@ Rectangle {
color: TextFieldStyle.background.color.normal color: TextFieldStyle.background.color.normal
radius: TextFieldStyle.background.radius radius: TextFieldStyle.background.radius
ScrollableListView {
anchors.fill: parent
}
} }
...@@ -6,11 +6,11 @@ import Linphone.Styles 1.0 ...@@ -6,11 +6,11 @@ import Linphone.Styles 1.0
// ============================================================================= // =============================================================================
SearchBox { SearchBox {
id: searchBox id: searchBar
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
readonly property alias isOpen: searchBox._isOpen readonly property alias isOpen: searchBar._isOpen
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -27,7 +27,10 @@ SearchBox { ...@@ -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 { ...@@ -37,35 +40,35 @@ SearchBox {
actions: [{ actions: [{
icon: 'video_call', icon: 'video_call',
handler: function (entry) { handler: function (entry) {
searchBox.closeMenu() searchBar.closeMenu()
searchBox.launchVideoCall(entry.sipAddress) searchBar.launchVideoCall(entry.sipAddress)
} }
}, { }, {
icon: 'call', icon: 'call',
handler: function (entry) { handler: function (entry) {
searchBox.closeMenu() searchBar.closeMenu()
searchBox.launchCall(entry.sipAddress) searchBar.launchCall(entry.sipAddress)
} }
}, { }, {
icon: 'chat', icon: 'chat',
handler: function (entry) { handler: function (entry) {
searchBox.closeMenu() searchBar.closeMenu()
searchBox.launchChat(entry.sipAddress) searchBar.launchChat(entry.sipAddress)
} }
}] }]
headerButtonDescription: qsTr('addContact') headerButtonDescription: qsTr('addContact')
headerButtonIcon: 'contact_add' headerButtonIcon: 'contact_add'
headerButtonAction: (function (sipAddress) { headerButtonAction: (function (sipAddress) {
searchBox.closeMenu() searchBar.closeMenu()
searchBox.addContact(sipAddress) searchBar.addContact(sipAddress)
}) })
genSipAddress: searchBox.filter genSipAddress: searchBar.filter
onEntryClicked: { onEntryClicked: {
searchBox.closeMenu() searchBar.closeMenu()
searchBox.entryClicked(entry) searchBar.entryClicked(entry)
} }
} }
} }
...@@ -52,6 +52,25 @@ ConfirmDialog { ...@@ -52,6 +52,25 @@ ConfirmDialog {
ScrollableListViewField { ScrollableListViewField {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: 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 { ...@@ -9,7 +9,7 @@ QtObject {
property int height: 420 property int height: 420
property int leftMargin: 35 property int leftMargin: 35
property int rightMargin: 35 property int rightMargin: 35
property int width: 680 property int width: 740
property QtObject columns: QtObject { property QtObject columns: QtObject {
property QtObject selector: 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