From 3b58f486ecf1bee1abbe2dbe8d74e1d909739eed Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 26 Jul 2018 13:24:34 +0300 Subject: [PATCH] Added chatID label to ChatWindow --- src/chatwindow.cpp | 1 + src/chatwindow.ui | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/chatwindow.cpp b/src/chatwindow.cpp index 8252de6..d17d94e 100644 --- a/src/chatwindow.cpp +++ b/src/chatwindow.cpp @@ -12,6 +12,7 @@ ChatWindow::ChatWindow(QString pID, QString cUUID, Handler *h, Network *n, QWidg handler = h; network = n; ui->peerIDLabel->setText(ui->peerIDLabel->text() + pID); + ui->chatIDLabel->setText(ui->chatIDLabel->text() + cUUID); connect(ui->sendMsgButton, &QAbstractButton::clicked, this, &ChatWindow::sendMsgButtonClicked); } ChatWindow::~ChatWindow() diff --git a/src/chatwindow.ui b/src/chatwindow.ui index 9486e3d..76458d5 100644 --- a/src/chatwindow.ui +++ b/src/chatwindow.ui @@ -14,7 +14,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -40,13 +40,20 @@ - + true + + + + ChatID: + + +