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; handler = h;
network = n; network = n;
ui->peerIDLabel->setText(ui->peerIDLabel->text() + pID); ui->peerIDLabel->setText(ui->peerIDLabel->text() + pID);
ui->chatIDLabel->setText(ui->chatIDLabel->text() + cUUID);
connect(ui->sendMsgButton, &QAbstractButton::clicked, this, &ChatWindow::sendMsgButtonClicked); connect(ui->sendMsgButton, &QAbstractButton::clicked, this, &ChatWindow::sendMsgButtonClicked);
} }
ChatWindow::~ChatWindow() ChatWindow::~ChatWindow()

View File

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