X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=3e0384c4ebbf32d5c2f53949d75cbb1afa1931b4;hb=bd0b31b38c8111206ce630dbeac7a6c19bdb8a6e;hp=9d312165bffda37aa85e4478094fc9602c262120;hpb=1c5537d85f9cf3dee9562ed7ea557fdfde9f8d8e;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 9d312165..3e0384c4 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -26,18 +26,18 @@ #include #include #include -#include #include #include "actioncollection.h" #include "bufferviewconfig.h" #include "networkmodel.h" +#include "treeviewtouch.h" #include "types.h" /***************************************** * The TreeView showing the Buffers *****************************************/ -class BufferView : public QTreeView +class BufferView : public TreeViewTouch { Q_OBJECT @@ -79,9 +79,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 +100,6 @@ private slots: private: QPointer _config; - qint64 _lastTouchStart = 0; - bool _touchScrollInProgress = false; enum ExpandedState { WasExpanded = 0x01,