fix for presences in MUCs, fix for memory limit in message history, fix for message line resizing, started working on messages

This commit is contained in:
Blue 2019-09-10 17:33:39 +03:00
parent 139c0de0e3
commit 0574d6f72b
15 changed files with 332 additions and 95 deletions

View file

@ -29,7 +29,9 @@
#include <QGraphicsView>
#include <QGraphicsPixmapItem>
#include <QVariantAnimation>
#include "../global.h"
#include "message.h"
class MessageLine : public QWidget
{
@ -66,10 +68,12 @@ private:
return a->getTime() < b->getTime();
}
};
typedef std::map<QDateTime, Shared::Message*> Order;
typedef std::map<QString, Shared::Message*> Index;
typedef std::map<QDateTime, Message*> Order;
typedef std::map<QString, Message*> Index;
Index messageIndex;
Order messageOrder;
Index myMessages;
std::map<QString, Index> palMessages;
QVBoxLayout* layout;
QString myName;