mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-20 18:28:33 +00:00
- Reload conference list when current account change. - Fix popup design (margins). - Factorization of message banner (eg. copy text message) - Factorization of NewConference dialog. - Fix design on file preview in chat. - Add participant shortcut in video conference. - Remove old Linphone-Utils file/scripts. - Fix avatar image in history view when clicking on username.
95 lines
2.5 KiB
QML
95 lines
2.5 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Linphone 1.0
|
|
import Utils 1.0
|
|
import UtilsCpp 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
import 'Incall.js' as Logic
|
|
import 'qrc:/ui/scripts/Utils/utils.js' as Utils
|
|
|
|
// =============================================================================
|
|
|
|
Rectangle {
|
|
id: endedCall
|
|
|
|
property var call
|
|
|
|
property var _sipAddressObserver: SipAddressesModel.getSipAddressObserver(call ? call.fullPeerAddress : '', call ? call.fullLocalAddress : '')
|
|
|
|
|
|
Component.onDestruction: _sipAddressObserver=null// Need to set it to null because of not calling destructor if not.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
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 && _sipAddressObserver.peerAddress
|
|
username: _sipAddressObserver ? 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 && _sipAddressObserver.contact && _sipAddressObserver.contact.vcard.avatar
|
|
username: contactDescription.username
|
|
|
|
height: Utils.computeAvatarSize(container, 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 : ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|