mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 07:08:07 +00:00
close #LINQT-1324 display loss rate/ jitter buffer in call stats + use the correct stats (audio/video)
43 lines
1.2 KiB
QML
43 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls.Basic
|
|
|
|
import Linphone
|
|
import UtilsCpp
|
|
import SettingsCpp
|
|
|
|
ColumnLayout{
|
|
id: mainItem
|
|
property AccountGui account: null
|
|
property string topText: account ? account.core.displayName : ""
|
|
property string bottomText: account ? SettingsCpp.onlyDisplaySipUriUsername ? UtilsCpp.getUsername(account.core.identityAddress) : account.core.identityAddress : ""
|
|
spacing: 0
|
|
width: topTextItem.implicitWidth
|
|
Text {
|
|
id: topTextItem
|
|
Layout.fillHeight: true
|
|
verticalAlignment: (bottomTextItem.visible?Text.AlignBottom:Text.AlignVCenter)
|
|
visible: text != ''
|
|
font.weight: 400 * DefaultStyle.dp
|
|
font.pixelSize: 14 * DefaultStyle.dp
|
|
color: DefaultStyle.main2_700
|
|
text: mainItem.topText
|
|
width: mainItem.width
|
|
Layout.preferredWidth: mainItem.width
|
|
wrapMode: Text.WrapAnywhere
|
|
maximumLineCount: 1
|
|
}
|
|
Text {
|
|
id: bottomTextItem
|
|
Layout.fillHeight: true
|
|
verticalAlignment: (topTextItem.visible?Text.AlignTop:Text.AlignVCenter)
|
|
visible: text != ''
|
|
font.weight: 300 * DefaultStyle.dp
|
|
font.pixelSize: 12 * DefaultStyle.dp
|
|
color: DefaultStyle.main2_400
|
|
text: mainItem.bottomText
|
|
Layout.preferredWidth: mainItem.width
|
|
maximumLineCount: 1
|
|
wrapMode: Text.WrapAnywhere
|
|
}
|
|
}
|