feat(ui/views/App/Calls/Incall): remove sip address in this view

This commit is contained in:
Ronan Abhamon 2017-06-09 10:30:34 +02:00
parent 68ccd50f2f
commit 602993b435
2 changed files with 22 additions and 21 deletions

View file

@ -62,6 +62,25 @@ Rectangle {
Layout.rightMargin: CallStyle.header.rightMargin
Layout.preferredHeight: CallStyle.header.contactDescription.height
Text {
id: elapsedTime
anchors.bottom: parent.bottom
color: CallStyle.header.elapsedTime.color
font.pointSize: CallStyle.header.elapsedTime.pointSize
horizontalAlignment: Text.AlignHCenter
width: parent.width
Timer {
interval: 1000
repeat: true
running: true
triggeredOnStart: true
onTriggered: elapsedTime.text = Utils.formatElapsedTime(call.duration)
}
}
ActionBar {
id: leftActions
@ -121,7 +140,7 @@ Rectangle {
anchors.centerIn: parent
horizontalTextAlignment: Text.AlignHCenter
sipAddress: _sipAddressObserver.sipAddress
sipAddress: ''
username: LinphoneUtils.getContactUsername(_sipAddressObserver.contact || sipAddress)
height: parent.height
@ -167,24 +186,6 @@ Rectangle {
}
}
Text {
id: elapsedTime
Layout.fillWidth: true
color: CallStyle.header.elapsedTime.color
font.pointSize: CallStyle.header.elapsedTime.pointSize
horizontalAlignment: Text.AlignHCenter
Timer {
interval: 1000
repeat: true
running: true
triggeredOnStart: true
onTriggered: elapsedTime.text = Utils.formatElapsedTime(call.duration)
}
}
// -------------------------------------------------------------------------
// Contact visual.
// -------------------------------------------------------------------------

View file

@ -32,7 +32,7 @@ QtObject {
}
property QtObject container: QtObject {
property int margins: 20
property int margins: 15
property QtObject avatar: QtObject {
property color backgroundColor: Colors.w
@ -63,7 +63,7 @@ QtObject {
}
property QtObject contactDescription: QtObject {
property int height: 60
property int height: 50
property int width: 150
}