linphone-desktop/tests/ui/modules/Linphone/Contact/ContactDescription.qml
Ronan Abhamon 08fbc20c97 feat(app): many changes:
- use vcard of Contact in qml
- remove `sipAddress` attribute of Contact
- refactoring...
2016-12-14 13:20:35 +01:00

38 lines
1,013 B
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
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
}
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
}
}