LINQT-1503 meeting avatar
This commit is contained in:
parent
64ca2feff6
commit
55e325c7ec
5 changed files with 9 additions and 3 deletions
|
|
@ -73,6 +73,7 @@ ColumnLayout {
|
||||||
width: 100 * DefaultStyle.dp
|
width: 100 * DefaultStyle.dp
|
||||||
height: 100 * DefaultStyle.dp
|
height: 100 * DefaultStyle.dp
|
||||||
contact: mainItem.contact || null
|
contact: mainItem.contact || null
|
||||||
|
isConferenceInfo: mainItem.conferenceInfo
|
||||||
_address: mainItem.conferenceInfo
|
_address: mainItem.conferenceInfo
|
||||||
? mainItem.conferenceInfo.core.subject
|
? mainItem.conferenceInfo.core.subject
|
||||||
: mainItem.contactAddress || mainItem.contactName
|
: mainItem.contactAddress || mainItem.contactName
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ ListView {
|
||||||
Layout.preferredWidth: 45 * DefaultStyle.dp
|
Layout.preferredWidth: 45 * DefaultStyle.dp
|
||||||
Layout.preferredHeight: 45 * DefaultStyle.dp
|
Layout.preferredHeight: 45 * DefaultStyle.dp
|
||||||
_address: modelData.core.remoteAddress
|
_address: modelData.core.remoteAddress
|
||||||
|
isConferenceInfo: modelData.core.isConference
|
||||||
}
|
}
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ Loader{
|
||||||
property AccountGui account: null
|
property AccountGui account: null
|
||||||
property FriendGui contact: null
|
property FriendGui contact: null
|
||||||
property CallGui call: null
|
property CallGui call: null
|
||||||
|
property bool isConferenceInfo: false
|
||||||
property string _address: account
|
property string _address: account
|
||||||
? account.core?.identityAddress || ""
|
? account.core?.identityAddress || ""
|
||||||
: call
|
: call
|
||||||
|
|
@ -143,7 +144,7 @@ Loader{
|
||||||
width: height
|
width: height
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: initialItem
|
id: initialItem
|
||||||
property string initials: UtilsCpp.getInitials(mainItem.displayNameVal)
|
property string initials: mainItem.isConferenceInfo ? "" : UtilsCpp.getInitials(mainItem.displayNameVal)
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: DefaultStyle.main2_200
|
color: DefaultStyle.main2_200
|
||||||
height: stackView.height
|
height: stackView.height
|
||||||
|
|
@ -163,9 +164,9 @@ Loader{
|
||||||
Image {
|
Image {
|
||||||
id: initialImg
|
id: initialImg
|
||||||
visible: initialItem.initials == ''
|
visible: initialItem.initials == ''
|
||||||
width: stackView.width/3
|
width: stackView.width/2
|
||||||
height: width
|
height: width
|
||||||
source: AppIcons.profile
|
source: mainItem.isConferenceInfo ? AppIcons.usersThree : AppIcons.profile
|
||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
sourceSize.height: height
|
sourceSize.height: height
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
@ -193,6 +194,7 @@ Loader{
|
||||||
width: height
|
width: height
|
||||||
Image {
|
Image {
|
||||||
id: image
|
id: image
|
||||||
|
z: 200
|
||||||
visible: false
|
visible: false
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ Notification {
|
||||||
Layout.preferredHeight: 60 * DefaultStyle.dp
|
Layout.preferredHeight: 60 * DefaultStyle.dp
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
call: mainItem.call
|
call: mainItem.call
|
||||||
|
isConferenceInfo: mainItem.call && mainItem.call.core.isConference
|
||||||
}
|
}
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
|
||||||
|
|
@ -305,6 +305,7 @@ AbstractMainPage {
|
||||||
_address: modelData.core.remoteAddress
|
_address: modelData.core.remoteAddress
|
||||||
width: 45 * DefaultStyle.dp
|
width: 45 * DefaultStyle.dp
|
||||||
height: 45 * DefaultStyle.dp
|
height: 45 * DefaultStyle.dp
|
||||||
|
isConferenceInfo: modelData.core.isConference
|
||||||
}
|
}
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue