mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
40 lines
1 KiB
QML
40 lines
1 KiB
QML
import QtQuick 2.7
|
|
|
|
import Linphone.Styles 1.0
|
|
|
|
// ===================================================================
|
|
|
|
Column {
|
|
property alias sipAddress: sipAddress.text
|
|
property alias username: username.text
|
|
property color sipAddressColor: ContactDescriptionStyle.sipAddress.color
|
|
property color usernameColor: ContactDescriptionStyle.username.color
|
|
property int horizontalTextAlignment
|
|
|
|
// Username.
|
|
Text {
|
|
id: username
|
|
|
|
color: usernameColor
|
|
elide: Text.ElideRight
|
|
font.bold: true
|
|
font.pointSize: ContactDescriptionStyle.username.fontSize
|
|
height: parent.height / 2
|
|
horizontalAlignment: horizontalTextAlignment
|
|
verticalAlignment: Text.AlignBottom
|
|
width: parent.width
|
|
}
|
|
|
|
// Sip address.
|
|
Text {
|
|
id: sipAddress
|
|
|
|
color: sipAddressColor
|
|
elide: Text.ElideRight
|
|
font.pointSize: ContactDescriptionStyle.sipAddress.fontSize
|
|
height: parent.height / 2
|
|
horizontalAlignment: horizontalTextAlignment
|
|
verticalAlignment: Text.AlignTop
|
|
width: parent.width
|
|
}
|
|
}
|