16#ifndef QGSSCROLLAREA_H
17#define QGSSCROLLAREA_H
23class ScrollAreaFilter;
55 void scrollOccurred();
61 bool hasScrolled()
const;
78 void setVerticalOnly(
bool verticalOnly );
81 void wheelEvent( QWheelEvent *event )
override;
82 void resizeEvent( QResizeEvent *event )
override;
86 ScrollAreaFilter *mFilter =
nullptr;
87 bool mVerticalOnly =
false;
100class ScrollAreaFilter :
public QObject
106 QWidget *viewPort =
nullptr );
109 bool eventFilter( QObject *obj, QEvent *event )
override;
113 QWidget *mViewPort =
nullptr;
114 QPoint mPreviousViewportCursorPos;
115 int mMoveDistanceThreshold = 0;
117 void addChild( QObject *child );
118 void removeChild( QObject *child );