choose a avatar when create a contact

This commit is contained in:
DenioD
2020-05-04 16:06:08 +02:00
parent 30a5403833
commit 5dbfe1e4ad
20 changed files with 99 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ void ContactModel::renderContactList(QListView* view)
if ((theme == "dark" || theme == "midnight")) {
// QIcon avatar = c.getAvatar();
QString avatar = "res/yoda.png";
QString avatar = c.getAvatar();
QStandardItem* Items1 = new QStandardItem(QIcon(avatar) ,c.getName());
contact->appendRow(Items1);