X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=566a07a01cd51a706280cd6bf5dbbad5c00fa16d;hb=26e6d2ac973b67ae227dfe36062c409a8e3fa5b3;hp=21ffa0277b12e3df3e199f8cfec09a2182a7aa1c;hpb=4a5065255e652dd0c301bac0db41b7afb777ef49;p=quassel.git diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 21ffa027..566a07a0 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2015 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; };