X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fbufferview.h;h=aaafd615517cbbd556909751995a306295f24bcd;hb=4c0c5a52458009b578a23d4abb4e726a13550c12;hp=2962e5e918bf8db0dc42b12c00bc560b761fab52;hpb=0b4b7c1cc23a915aa42b1d60bf00f047639f1279;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 2962e5e9..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 * @@ -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,