16 #ifndef QGSSCROLLAREA_H 17 #define QGSSCROLLAREA_H 19 #include <QScrollArea> 23 class ScrollAreaFilter;
56 void scrollOccurred();
62 bool hasScrolled()
const;
65 void wheelEvent( QWheelEvent *event )
override;
69 ScrollAreaFilter *mFilter =
nullptr;
81 class ScrollAreaFilter :
public QObject
87 QWidget *viewPort =
nullptr );
90 bool eventFilter( QObject *obj, QEvent *event )
override;
94 QWidget *mViewPort =
nullptr;
96 void addChild( QObject *child );
97 void removeChild( QObject *child );
105 #endif // QGSSCROLLAREA_H