X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=aaafd615517cbbd556909751995a306295f24bcd;hp=1f733cfb1e0d371f118d0a0ac0074a08c39db1bc;hb=4c0c5a52458009b578a23d4abb4e726a13550c12;hpb=29c7d46de1bb0703e51033ddcec34cb785d6f8c6 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 1f733cfb..aaafd615 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -79,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); @@ -100,6 +103,8 @@ private slots: private: QPointer _config; + qint64 _lastTouchStart = 0; + bool _touchScrollInProgress = false; enum ExpandedState { WasExpanded = 0x01,