X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=ce45c5b5f17d1375c50c38f4a7c2f04a22d1c6c3;hp=9d312165bffda37aa85e4478094fc9602c262120;hb=19740eba83b9d776d8f62cae02762ee3b08e3b67;hpb=26e6d2ac973b67ae227dfe36062c409a8e3fa5b3 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 9d312165..ce45c5b5 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -33,11 +33,12 @@ #include "bufferviewconfig.h" #include "networkmodel.h" #include "types.h" +#include "treeviewtouch.h" /***************************************** * The TreeView showing the Buffers *****************************************/ -class BufferView : public QTreeView +class BufferView : public TreeViewTouch { Q_OBJECT @@ -79,9 +80,6 @@ protected: virtual QSize sizeHint() const; virtual void focusInEvent(QFocusEvent *event) { QAbstractScrollArea::focusInEvent(event); } virtual void contextMenuEvent(QContextMenuEvent *event); - virtual bool event(QEvent *event); - virtual void mouseMoveEvent(QMouseEvent *event); - virtual void mousePressEvent(QMouseEvent *event); #if QT_VERSION < 0x050000 virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); @@ -103,8 +101,6 @@ private slots: private: QPointer _config; - qint64 _lastTouchStart = 0; - bool _touchScrollInProgress = false; enum ExpandedState { WasExpanded = 0x01,