fix(ActivityChannelBadgePanel): ensure loading badge components works

QML is complaining that it can't assign the types to `sourceComponent`,
so this commit wraps them in `Component` types to mitigate that.
This commit is contained in:
Pascal Precht 2021-10-21 11:18:36 +02:00 committed by r4bbit.eth
parent a95348b289
commit 193b42ed54
1 changed files with 31 additions and 25 deletions

View File

@ -51,40 +51,46 @@ Rectangle {
}
}
ActivityCenter.ReplyComponent {
Component {
id: replyComponent
width: childrenRect.width
height: parent.height
replyMessageIndex: wrapper.replyMessageIndex
repliedMessageContent: wrapper.repliedMessageContent
ActivityCenter.ReplyComponent {
width: childrenRect.width
height: parent.height
replyMessageIndex: wrapper.replyMessageIndex
repliedMessageContent: wrapper.repliedMessageContent
}
}
ActivityCenter.CommunityBadge {
Component {
id: communityBadgeComponent
width: childrenRect.width
height: parent.height
ActivityCenter.CommunityBadge {
width: childrenRect.width
height: parent.height
textColor: wrapper.textColor
image: wrapper.communityThumbnailImage
iconColor: wrapper.communityColor
communityName: wrapper.communityName
channelName: wrapper.channelName
name: wrapper.name
textColor: wrapper.textColor
image: wrapper.communityThumbnailImage
iconColor: wrapper.communityColor
communityName: wrapper.communityName
channelName: wrapper.channelName
name: wrapper.name
onCommunityNameClicked: communityNameClicked()
onChannelNameClicked: channelNameClicked()
onCommunityNameClicked: communityNameClicked()
onChannelNameClicked: channelNameClicked()
}
}
ActivityCenter.ChannelBadge {
Component {
id: channelBadgeComponent
width: childrenRect.width
height: parent.height
ActivityCenter.ChannelBadge {
width: childrenRect.width
height: parent.height
realChatType: wrapper.realChatType
textColor: wrapper.textColor
name: wrapper.name
chatId: wrapper.chatId
profileImage: wrapper.profileImage
identicon: wrapper.identicon
realChatType: wrapper.realChatType
textColor: wrapper.textColor
name: wrapper.name
chatId: wrapper.chatId
profileImage: wrapper.profileImage
identicon: wrapper.identicon
}
}
}