update// added chatmessages to chatwindow

This commit is contained in:
Strider
2020-04-27 21:53:37 +02:00
parent a607a54a00
commit b79334a497
7 changed files with 40 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
#include <QString>
#include <map>
#include <vector>
#include <QListView>
#include <QListWidget>
class ChatItem
{
@@ -109,8 +109,8 @@ class ChatModel
std::map<long, ChatItem> getItems();
void setItems(std::map<long, ChatItem> items);
void setItems(std::vector<ChatItem> items);
void renderChatBox(QListView &view);
void renderChatBox(QListView *view);
void renderChatBox(QListWidget &view);
void renderChatBox(QListWidget *view);
void showMessages();
void clear();
void addMessage(ChatItem item);