X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=4bdc7d0291d3914521ef0b107f26c407bed7250e;hb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;hp=8638039af217a49f6a21febc8c122daa58b6a5f5;hpb=7582027d5f569c8487d17959d6aa9e6ca6d2aa33;p=quassel.git diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 8638039a..4bdc7d02 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -18,14 +18,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef NICKVIEW_H_ -#define NICKVIEW_H_ +#pragma once + +#include "uisupport-export.h" #include #include "bufferinfo.h" +#include "treeviewtouch.h" -class NickView : public QTreeView +class UISUPPORT_EXPORT NickView : public TreeViewTouch { Q_OBJECT @@ -37,9 +39,6 @@ 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(); @@ -55,9 +54,4 @@ signals: private: friend class NickListWidget; // needs selectedIndexes() - qint64 _lastTouchStart = 0; - bool _touchScrollInProgress = false; }; - - -#endif