X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=8638039af217a49f6a21febc8c122daa58b6a5f5;hb=7582027d5f569c8487d17959d6aa9e6ca6d2aa33;hp=3f5734e1000f3c58e149939605ff47f6248b0daf;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 3f5734e1..8638039a 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,6 +37,9 @@ protected: //! This reimplementation ensures that the current index is first in list virtual QModelIndexList selectedIndexes() const; + virtual bool event(QEvent *event); + virtual void mouseMoveEvent(QMouseEvent *event); + virtual void mousePressEvent(QMouseEvent *event); void unanimatedExpandAll(); @@ -52,6 +55,8 @@ signals: private: friend class NickListWidget; // needs selectedIndexes() + qint64 _lastTouchStart = 0; + bool _touchScrollInProgress = false; };