#include <QDockWidget>
#include <QModelIndex>
#include <QStyledItemDelegate>
-#include <QTreeView>
#include <QPointer>
#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
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);
private:
QPointer<BufferViewConfig> _config;
- qint64 _lastTouchStart = 0;
- bool _touchScrollInProgress = false;
enum ExpandedState {
WasExpanded = 0x01,