summaryrefslogtreecommitdiffstats
path: root/include/TimelineView.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/TimelineView.h')
-rw-r--r--include/TimelineView.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/TimelineView.h b/include/TimelineView.h
index bc7c41e6..78c31e8e 100644
--- a/include/TimelineView.h
+++ b/include/TimelineView.h
@@ -21,6 +21,8 @@
#include <QList>
#include <QQueue>
#include <QScrollArea>
+#include <QStyle>
+#include <QStyleOption>
#include "Emote.h"
#include "Image.h"
@@ -110,7 +112,7 @@ public slots:
void addBackwardsEvents(const QString &room_id, const RoomMessages &msgs);
// Whether or not the initial batch has been loaded.
- bool hasLoaded() { return scroll_layout_->count() > 1 || isTimelineFinished; };
+ bool hasLoaded() { return scroll_layout_->count() > 1 || isTimelineFinished; }
void handleFailedMessage(int txnid);
@@ -120,6 +122,9 @@ private slots:
signals:
void updateLastTimelineMessage(const QString &user, const DescInfo &info);
+protected:
+ void paintEvent(QPaintEvent *event) override;
+
private:
void init();
void addTimelineItem(TimelineItem *item, TimelineDirection direction);
@@ -133,7 +138,7 @@ private:
bool isPendingMessage(const QString &txnid, const QString &sender, const QString &userid);
void removePendingMessage(const QString &txnid);
- bool isDuplicate(const QString &event_id) { return eventIds_.contains(event_id); };
+ bool isDuplicate(const QString &event_id) { return eventIds_.contains(event_id); }
void handleNewUserMessage(PendingMessage msg);