diff --git a/smsapp/conversationlistmodel.cpp b/smsapp/conversationlistmodel.cpp index af357565c..a0f24097c 100644 --- a/smsapp/conversationlistmodel.cpp +++ b/smsapp/conversationlistmodel.cpp @@ -183,7 +183,7 @@ void ConversationListModel::createRowFromMessage(const ConversationMessage &mess const QIcon displayIcon = SmsHelper::getIconForAddresses(rawAddresses); item->setText(displayNames); - item->setIcon(displayIcon); + item->setData(displayIcon.name(), Qt::DecorationRole); item->setData(message.threadID(), ConversationIdRole); item->setData(rawAddresses[0].address(), SenderRole); } diff --git a/smsapp/qml/ConversationList.qml b/smsapp/qml/ConversationList.qml index 39d24a065..878815184 100644 --- a/smsapp/qml/ConversationList.qml +++ b/smsapp/qml/ConversationList.qml @@ -187,7 +187,7 @@ Kirigami.ScrollablePage delegate: Kirigami.BasicListItem { id: listItem - icon: decoration + icon.name: decoration reserveSpaceForIcon: true label: display subtitle: toolTip