change some gui elements
This commit is contained in:
@@ -91,7 +91,7 @@ void ChatModel::renderChatBox(Ui::MainWindow* ui, QListWidget *view)
|
||||
//////Render only Memos for selected contacts. Do not render empty Memos
|
||||
if ((ui->ContactZaddr->text().trimmed() == c.second.getAddress()) && (c.second.getMemo().startsWith("{") == false) && (c.second.getMemo().isEmpty() == false)) {
|
||||
line += QString("[") + myDateTime.toString("dd.MM.yyyy hh:mm:ss ") + QString("] ");
|
||||
line += QString("<") + QString(c.second.getContact()) + QString("> :\n");
|
||||
line += QString("<") + QString("Outgoing") + QString("> :\n");
|
||||
line += QString(c.second.getMemo()) + QString("\n");
|
||||
view->addItem(line);
|
||||
line ="";
|
||||
@@ -99,7 +99,7 @@ void ChatModel::renderChatBox(Ui::MainWindow* ui, QListWidget *view)
|
||||
|
||||
if ((ui->MyZaddr->text().trimmed() == c.second.getAddress()) && (c.second.getMemo().startsWith("{") == false) && (c.second.getMemo().isEmpty() == false)){
|
||||
line += QString("[") + myDateTime.toString("dd.MM.yyyy hh:mm:ss ") + QString("] ");
|
||||
line += QString("<") + QString(c.second.getContact()) + QString("> :\n");
|
||||
line += QString("<") + QString("incoming") + QString("> :\n");
|
||||
line += QString(c.second.getMemo()) + QString("\n");
|
||||
view->addItem(line);
|
||||
line ="";
|
||||
|
||||
@@ -1000,6 +1000,7 @@ void MainWindow::setupchatTab() {
|
||||
if (label_contact == p.getName()) {
|
||||
ui->ContactZaddr->setText(p.getPartnerAddress());
|
||||
ui->MyZaddr->setText(p.getMyAddress());
|
||||
ui->contactNameMemo->setText(p.getName());
|
||||
|
||||
rpc->refresh(true);
|
||||
}
|
||||
|
||||
@@ -1348,7 +1348,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p align="center">Contact</p></body></html></string>
|
||||
<string><html><head/><body><p align="center">Hushchat Contactlist</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_40">
|
||||
@@ -1390,17 +1390,17 @@
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
<widget class="QLabel" name="contactNameMemo">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<x>720</x>
|
||||
<y>50</y>
|
||||
<width>861</width>
|
||||
<width>481</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p align="center">Messages</p></body></html></string>
|
||||
<string><html><head/><body><p align="center"><br/></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QListWidget" name="listChatMemo">
|
||||
@@ -1505,7 +1505,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Sicheren Kontakt hinzufügen</string>
|
||||
<string>Add conversation contact</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>false</bool>
|
||||
|
||||
Reference in New Issue
Block a user