linphone-desktop/linphone-app/ui/modules/Linphone/Contact/ContactDescription.qml
Julien Wadel eba233655e Bugfixes : MacOs crash, Video request not working, fonts
* 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)
2020-06-19 09:25:51 +02:00

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
}
}