Added chatID label to ChatWindow

This commit is contained in:
Denis Davydov 2018-07-26 13:24:34 +03:00
parent 6019b36642
commit 3b58f486ec
2 changed files with 11 additions and 3 deletions

View File

@ -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()

View File

@ -14,7 +14,7 @@
<string/>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0" colspan="2">
<item row="3" column="0" colspan="2">
<widget class="QLineEdit" name="msgEdit"/>
</item>
<item row="0" column="0">
@ -30,7 +30,7 @@
</property>
</widget>
</item>
<item row="2" column="2">
<item row="3" column="2">
<widget class="QPushButton" name="sendMsgButton">
<property name="locale">
<locale language="English" country="UnitedStates"/>
@ -40,13 +40,20 @@
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<item row="2" column="0" colspan="3">
<widget class="QTextEdit" name="chatEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="chatIDLabel">
<property name="text">
<string>ChatID: </string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>