/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Q_OBJECT
public:
- ChatView(MessageFilter *, QWidget *parent = 0);
- ChatView(BufferId bufferId, QWidget *parent = 0);
+ ChatView(MessageFilter *, QWidget *parent = nullptr);
+ ChatView(BufferId bufferId, QWidget *parent = nullptr);
- virtual MsgId lastMsgId() const;
+ MsgId lastMsgId() const override;
virtual MsgId lastVisibleMsgId() const;
inline AbstractBufferContainer *bufferContainer() const { return _bufferContainer; }
inline void setBufferContainer(AbstractBufferContainer *c) { _bufferContainer = c; }
void jumpToMarkerLine(bool requestBacklog);
protected:
- virtual bool event(QEvent *event);
- virtual void resizeEvent(QResizeEvent *event);
- virtual void scrollContentsBy(int dx, int dy);
+ bool event(QEvent *event) override;
+ void resizeEvent(QResizeEvent *event) override;
+ void scrollContentsBy(int dx, int dy) override;
protected slots:
virtual void verticalScrollbarChanged(int);
int _scrollOffset;
bool _invalidateFilter;
QSet<ChatLine *> _linesWithCache;
- qint64 _lastTouchStart = 0;
+ bool _firstTouchUpdateHappened = false;
};