mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-20 01:18:29 +00:00
* Activate mipmap on MacOs to avoid Qt crashes * Use 5.14.2 for Windows * Request Qt 5.12 as a minimal version and cmake 3.9 (in order to embed big resources) * Remove build on Debian8 as it has Qt 5.10 * Add default fonts for supported languages * Use a build parameter to set `dpiawareness` (Windows) * Add OTF support, in addition of TTF * Explicit the answer to video request : Fix on not showing video when accepting a second request * Use UTF8 when chatting and notifications to show all languages/symbols * Fix SIP display on call view * Fix a typo on a variable in call view (might lead to get transparent view)
41 lines
1.2 KiB
QML
41 lines
1.2 KiB
QML
import QtQuick 2.7
|
|
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Column {
|
|
property alias username: username.text
|
|
property string sipAddress
|
|
|
|
property color sipAddressColor: ContactDescriptionStyle.sipAddress.color
|
|
property color usernameColor: ContactDescriptionStyle.username.color
|
|
property int horizontalTextAlignment
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Text {
|
|
id: username
|
|
|
|
color: usernameColor
|
|
elide: Text.ElideRight
|
|
font.bold: true
|
|
font.pointSize: ContactDescriptionStyle.username.pointSize
|
|
horizontalAlignment: horizontalTextAlignment
|
|
verticalAlignment: Text.AlignBottom
|
|
width: parent.width
|
|
height: (parent.height-parent.topPadding-parent.bottomPadding)/parent.visibleChildren.length
|
|
}
|
|
|
|
Text {
|
|
text: SipAddressesModel.cleanSipAddress(sipAddress)
|
|
color: sipAddressColor
|
|
elide: Text.ElideRight
|
|
font.pointSize: ContactDescriptionStyle.sipAddress.pointSize
|
|
horizontalAlignment: horizontalTextAlignment
|
|
verticalAlignment: Text.AlignTop
|
|
width: parent.width
|
|
height: (parent.height-parent.topPadding-parent.bottomPadding)/parent.visibleChildren.length
|
|
}
|
|
}
|