mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-19 07:48:30 +00:00
Fixes: * Change download URL to `https://www.linphone.org/technical-corner/linphone` * Crash on contacts list when deleting a friend and trying to load logs. * Message status behaviour : Resuming status when changing logs, cursor shapes updates, bind the `resend message` action to error icon * Synchronize settings and main presence. * QML Crashs on fullscreen Features : * Add utilities in fullscreen view (media quality, security, mutable speaker) * Show fullscreen on the current call screen * Show Display name of participant in conference * Participants in conference are mutable
124 lines
2.8 KiB
QML
124 lines
2.8 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
// =============================================================================
|
|
Rectangle{
|
|
id: zrtp
|
|
property var call
|
|
visible: false
|
|
color:"transparent"
|
|
|
|
implicitWidth: columnLayout.implicitWidth
|
|
implicitHeight: columnLayout.implicitHeight+CallStyle.container.margins
|
|
|
|
radius: 10
|
|
|
|
ColumnLayout {
|
|
id:columnLayout
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Layout.fillWidth: true
|
|
anchors.bottom: parent.bottom
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Main text.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Text {
|
|
Layout.fillWidth: true
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
text: qsTr('confirmSas')
|
|
|
|
color: CallStyle.zrtpArea.text.colorA
|
|
elide: Text.ElideRight
|
|
|
|
font {
|
|
bold: true
|
|
pointSize: CallStyle.zrtpArea.text.pointSize
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Rules.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Row {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
spacing: CallStyle.zrtpArea.text.wordsSpacing
|
|
|
|
Text {
|
|
color: CallStyle.zrtpArea.text.colorA
|
|
font.pointSize: CallStyle.zrtpArea.text.pointSize
|
|
text: qsTr('codeA')
|
|
}
|
|
|
|
Text {
|
|
color: CallStyle.zrtpArea.text.colorB
|
|
|
|
font {
|
|
bold: true
|
|
pointSize: CallStyle.zrtpArea.text.pointSize
|
|
}
|
|
|
|
text: zrtp.call?zrtp.call.localSas:''
|
|
}
|
|
|
|
Text {
|
|
color: CallStyle.zrtpArea.text.colorA
|
|
font.pointSize: CallStyle.zrtpArea.text.pointSize
|
|
text: '-'
|
|
}
|
|
|
|
Text {
|
|
color: CallStyle.zrtpArea.text.colorA
|
|
font.pointSize: CallStyle.zrtpArea.text.pointSize
|
|
text: qsTr('codeB')
|
|
}
|
|
|
|
Text {
|
|
color: CallStyle.zrtpArea.text.colorB
|
|
|
|
font {
|
|
bold: true
|
|
pointSize: CallStyle.zrtpArea.text.pointSize
|
|
}
|
|
|
|
text: zrtp.call?zrtp.call.remoteSas:''
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Buttons.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Row {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
spacing: CallStyle.zrtpArea.buttons.spacing
|
|
|
|
TextButtonA {
|
|
text: qsTr('deny')
|
|
onClicked: {
|
|
zrtp.visible = false
|
|
zrtp.call.verifyAuthenticationToken(false)
|
|
}
|
|
}
|
|
|
|
TextButtonB {
|
|
text: qsTr('accept')
|
|
onClicked: {
|
|
zrtp.visible = false
|
|
zrtp.call.verifyAuthenticationToken(true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|