X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=aaafd615517cbbd556909751995a306295f24bcd;hp=a49ce15c1af35314cc3509af38963a9783a1724f;hb=4c0c5a52458009b578a23d4abb4e726a13550c12;hpb=e50ae7a06fc4e5d3a911c361d30953410deab609 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index a49ce15c..aaafd615 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -52,7 +52,6 @@ public: void setModel(QAbstractItemModel *model); void setFilteredModel(QAbstractItemModel *model, BufferViewConfig *config); - virtual void setSelectionModel(QItemSelectionModel *selectionModel); void setConfig(BufferViewConfig *config); inline BufferViewConfig *config() { return _config; } @@ -80,6 +79,9 @@ 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); @@ -101,6 +103,8 @@ private slots: private: QPointer _config; + qint64 _lastTouchStart = 0; + bool _touchScrollInProgress = false; enum ExpandedState { WasExpanded = 0x01,