mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-28 01:09:19 +00:00
53 lines
1.2 KiB
QML
53 lines
1.2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// ===================================================================
|
|
|
|
Rectangle {
|
|
property alias actions: actionBar.data
|
|
property alias sipAddressColor: description.sipAddressColor
|
|
property alias usernameColor: description.usernameColor
|
|
|
|
property var contact
|
|
|
|
color: 'transparent' // No color by default.
|
|
height: ContactStyle.height
|
|
|
|
RowLayout {
|
|
anchors {
|
|
fill: parent
|
|
leftMargin: ContactStyle.leftMargin
|
|
rightMargin: ContactStyle.rightMargin
|
|
}
|
|
spacing: ContactStyle.spacing
|
|
|
|
Avatar {
|
|
id: avatar
|
|
|
|
Layout.preferredHeight: ContactStyle.contentHeight
|
|
Layout.preferredWidth: ContactStyle.contentHeight
|
|
image: contact.avatar
|
|
presenceLevel: contact.presenceLevel
|
|
username: contact.username
|
|
}
|
|
|
|
ContactDescription {
|
|
id: description
|
|
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
sipAddress: contact.sipAddresses[0]
|
|
username: avatar.username
|
|
}
|
|
|
|
ActionBar {
|
|
id: actionBar
|
|
|
|
Layout.preferredHeight: ContactStyle.contentHeight
|
|
}
|
|
}
|
|
}
|