smsapp: Fix warnings about incompatible type for icons
This commit is contained in:
parent
ebfabd7c14
commit
d7df67ce0a
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue