From 4305980b278f77c9d00608b2f6a7b5615e948f85 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Thu, 7 May 2020 22:03:25 +0200 Subject: [PATCH] add information box for contact request --- src/chatmodel.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index 34be5c0..c3503b9 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -155,7 +155,7 @@ void ChatModel::renderContactRequest(){ requestContact.setupUi(&dialog); Settings::saveRestore(&dialog); - /* { + { QStandardItemModel* contactRequest = new QStandardItemModel(); @@ -222,12 +222,17 @@ void ChatModel::renderContactRequest(){ QString newLabel = requestContact.requestLabel->text().trimmed(); auto myAddr = requestContact.requestMyAddr->text().trimmed(); - QString avatar = QString("res/") + requestContact.comboBoxAvatar->currentText() + QString(".png"); + QString avatar = QString(":/icons/res/") + requestContact.comboBoxAvatar->currentText() + QString(".png"); qDebug()<<"Beginn kopiert" <addAddressLabel(newLabel, addr, myAddr, cid, avatar); + + QMessageBox::information(main, "Added Contact","successfully added your new contact. You can now Chat with this contact"); + + + }); - */ + dialog.exec(); }