X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=4971e3686d3a9518f3cb004b9af9f8192f3f32a3;hp=aaafd615517cbbd556909751995a306295f24bcd;hb=de2c1a4f9bbae7070cf8fd8247db765a23d28a9c;hpb=7582027d5f569c8487d17959d6aa9e6ca6d2aa33 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index aaafd615..4971e368 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,