smsapp: Fix warnings about incompatible type for icons

This commit is contained in:
Alexander Lohnau 2023-09-25 07:00:56 +02:00
parent ebfabd7c14
commit d7df67ce0a
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ void ConversationListModel::createRowFromMessage(const ConversationMessage &mess
const QIcon displayIcon = SmsHelper::getIconForAddresses(rawAddresses); const QIcon displayIcon = SmsHelper::getIconForAddresses(rawAddresses);
item->setText(displayNames); item->setText(displayNames);
item->setIcon(displayIcon); item->setData(displayIcon.name(), Qt::DecorationRole);
item->setData(message.threadID(), ConversationIdRole); item->setData(message.threadID(), ConversationIdRole);
item->setData(rawAddresses[0].address(), SenderRole); item->setData(rawAddresses[0].address(), SenderRole);
} }

View file

@ -187,7 +187,7 @@ Kirigami.ScrollablePage
delegate: Kirigami.BasicListItem delegate: Kirigami.BasicListItem
{ {
id: listItem id: listItem
icon: decoration icon.name: decoration
reserveSpaceForIcon: true reserveSpaceForIcon: true
label: display label: display
subtitle: toolTip subtitle: toolTip