X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=1aeffc78f195c33930ae2f168deb6c7299f68804;hp=7607a7d7576275535b9b77ddee69527f8bb5c277;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index 7607a7d7..1aeffc78 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 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 * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CHATVIEW_H_ @@ -39,10 +39,10 @@ class ChatView : public QGraphicsView, public AbstractChatView 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; } @@ -90,9 +90,9 @@ public slots: 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); @@ -117,6 +117,7 @@ private: int _scrollOffset; bool _invalidateFilter; QSet _linesWithCache; + bool _firstTouchUpdateHappened = false; };