linphone-desktop/Linphone/view/Page/Form/Contact/ContactDescription.qml
Gaëlle Braud 34106a8008 fix #LINQT-1833 select chat when one result in chat list after research \
fix notify account when not sender \
display security settings ui \
rename hide_sip_addresses flag \
fix #LINQT-1843 disconnect old chatroom properly to avoid having message from another chatroom in the new one selected
2025-07-17 15:42:14 +00:00

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.hideSipAddresses ? UtilsCpp.getUsername(account.core.identityAddress) : account.core.identityAddress : ""
spacing: 0
width: topTextItem.implicitWidth
Text {
id: topTextItem
Layout.fillHeight: true
Layout.fillWidth: true
verticalAlignment: (bottomTextItem.visible?Text.AlignBottom:Text.AlignVCenter)
visible: text != ""
font.weight: Typography.p1.weight
font.pixelSize: Typography.p1.pixelSize
color: DefaultStyle.main2_700
text: mainItem.topText
width: mainItem.width
wrapMode: Text.WrapAnywhere
maximumLineCount: 1
}
Text {
id: bottomTextItem
Layout.fillHeight: true
Layout.fillWidth: true
verticalAlignment: (topTextItem.visible?Text.AlignTop:Text.AlignVCenter)
visible: text != ''
font.weight: Math.round(300 * DefaultStyle.dp)
font.pixelSize: Math.round(12 * DefaultStyle.dp)
color: DefaultStyle.main2_400
text: mainItem.bottomText
maximumLineCount: 1
wrapMode: Text.WrapAnywhere
}
}