16 #ifndef QGSSCROLLAREA_H
17 #define QGSSCROLLAREA_H
19 #include <QScrollArea>
23 class ScrollAreaFilter;
56 void scrollOccurred();
62 bool hasScrolled()
const;
72 void setVerticalOnly(
bool verticalOnly );
75 void wheelEvent( QWheelEvent *event )
override;
76 void resizeEvent( QResizeEvent *event )
override;
80 ScrollAreaFilter *mFilter =
nullptr;
81 bool mVerticalOnly =
false;
94 class ScrollAreaFilter :
public QObject
100 QWidget *viewPort =
nullptr );
103 bool eventFilter( QObject *obj, QEvent *event )
override;
107 QWidget *mViewPort =
nullptr;
109 void addChild( QObject *child );
110 void removeChild( QObject *child );
118 #endif // QGSSCROLLAREA_H