16#ifndef QGSSCROLLAREA_H
17#define QGSSCROLLAREA_H
23class ScrollAreaFilter;
56 void scrollOccurred();
62 bool hasScrolled()
const;
79 void setVerticalOnly(
bool verticalOnly );
82 void wheelEvent( QWheelEvent *event )
override;
83 void resizeEvent( QResizeEvent *event )
override;
87 ScrollAreaFilter *mFilter =
nullptr;
88 bool mVerticalOnly =
false;
101class ScrollAreaFilter :
public QObject
107 QWidget *viewPort =
nullptr );
110 bool eventFilter( QObject *obj, QEvent *event )
override;
114 QWidget *mViewPort =
nullptr;
115 QPoint mPreviousViewportCursorPos;
116 int mMoveDistanceThreshold = 0;
118 void addChild( QObject *child );
119 void removeChild( QObject *child );