/***************************************************************************
- * 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 *
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,