update// moved render function to chat.cpp

This commit is contained in:
Strider
2020-05-10 16:16:54 +02:00
parent a672d0a461
commit 11e3bc5ede
4 changed files with 26 additions and 15 deletions

View File

@@ -16,6 +16,7 @@ DataStore<QString>* DataStore<QString>::instance = nullptr;
template<>
bool DataStore<QString>::instanced = false;*/
ChatModel *chatModel = new ChatModel();
Chat *chat = new Chat();
ContactModel *contactModel = new ContactModel();
using json = nlohmann::json;
@@ -1022,7 +1023,7 @@ void Controller::refreshTransactions() {
// Update model data, which updates the table view
transactionsTableModel->replaceData(txdata);
chatModel->renderChatBox(ui, ui->listChat);
chat->renderChatBox(ui, ui->listChat);
refreshContacts(
ui->listContactWidget
@@ -1032,7 +1033,7 @@ void Controller::refreshTransactions() {
void Controller::refreshChat(QListView *listWidget)
{
chatModel->renderChatBox(ui, listWidget);
chat->renderChatBox(ui, listWidget);
}