mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-19 07:48:30 +00:00
- Avoid to replace display if empty on address books search - Propagate change when display name is set in callModel - Add a way to update addresses when data model change outside of ChatRoomModel - While calling and one participant, get display name from call remote address - Update display names after adding a call log - Fix UTF8 when compute display name - Replace JS display name functions by CPP * Fix tooltips width and timeline unexistant object * MSYS2 bzip2 may block the process execution when no arguments. Add help args and remove outputs from streams.
93 lines
2.2 KiB
QML
93 lines
2.2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Linphone 1.0
|
|
import LinphoneUtils 1.0
|
|
import Utils 1.0
|
|
import UtilsCpp 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
import 'Incall.js' as Logic
|
|
|
|
// =============================================================================
|
|
|
|
Rectangle {
|
|
id: endedCall
|
|
|
|
property var call
|
|
|
|
property var _sipAddressObserver: SipAddressesModel.getSipAddressObserver(call ? call.fullPeerAddress : '', call ? call.fullLocalAddress : '')
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
color: CallStyle.backgroundColor
|
|
|
|
ColumnLayout {
|
|
anchors {
|
|
fill: parent
|
|
topMargin: CallStyle.header.topMargin
|
|
}
|
|
|
|
spacing: 0
|
|
|
|
ContactDescription {
|
|
id: contactDescription
|
|
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: CallStyle.header.contactDescription.height
|
|
|
|
horizontalTextAlignment: Text.AlignHCenter
|
|
sipAddress: _sipAddressObserver.peerAddress
|
|
username: UtilsCpp.getDisplayName(_sipAddressObserver.peerAddress)
|
|
}
|
|
|
|
Text {
|
|
Layout.fillWidth: true
|
|
|
|
color: CallStyle.header.elapsedTime.color
|
|
font.pointSize: CallStyle.header.elapsedTime.pointSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
text: {
|
|
var call = endedCall.call
|
|
return call ? Utils.formatElapsedTime(call.duration) : 0
|
|
}
|
|
}
|
|
|
|
Item {
|
|
id: container
|
|
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
Layout.margins: CallStyle.container.margins
|
|
|
|
Avatar {
|
|
anchors.centerIn: parent
|
|
backgroundColor: CallStyle.container.avatar.backgroundColor
|
|
image: _sipAddressObserver.contact && _sipAddressObserver.contact.vcard.avatar
|
|
username: contactDescription.username
|
|
|
|
height: Logic.computeAvatarSize(CallStyle.container.avatar.maxSize)
|
|
width: height
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: CallStyle.actionArea.height
|
|
|
|
Text {
|
|
color: CallStyle.actionArea.callError.color
|
|
font.pointSize: CallStyle.actionArea.callError.pointSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
width: parent.width
|
|
|
|
text: {
|
|
var call = endedCall.call
|
|
return call ? call.callError : ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|