16#ifndef QGSSCROLLAREA_H
17#define QGSSCROLLAREA_H
23class ScrollAreaFilter;
54 void scrollOccurred();
60 bool hasScrolled()
const;
77 void setVerticalOnly(
bool verticalOnly );
80 void wheelEvent( QWheelEvent *event )
override;
81 void resizeEvent( QResizeEvent *event )
override;
85 ScrollAreaFilter *mFilter =
nullptr;
86 bool mVerticalOnly =
false;
98class ScrollAreaFilter :
public QObject
102 ScrollAreaFilter(
QgsScrollArea *parent =
nullptr, QWidget *viewPort =
nullptr );
105 bool eventFilter( QObject *obj, QEvent *event )
override;
109 QWidget *mViewPort =
nullptr;
110 QPoint mPreviousViewportCursorPos;
111 int mMoveDistanceThreshold = 0;
113 void addChild( QObject *child );
114 void removeChild( QObject *child );