class KItemListSmoothScroller;
class KItemListView;
class KItemModelBase;
+class QScroller;
/**
* @brief Provides a QWidget based scrolling view for a KItemListController.
void scrollContentsBy(int dx, int dy) override;
void wheelEvent(QWheelEvent* event) override;
-private slots:
+private Q_SLOTS:
void slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
void slotModelChanged(KItemModelBase* current, KItemModelBase* previous);
void slotViewChanged(KItemListView* current, KItemListView* previous);
void scrollTo(qreal offset);
void updateScrollOffsetScrollBar();
void updateItemOffsetScrollBar();
+ void stopScroller();
private:
void updateGeometries();
KItemListSmoothScroller* m_horizontalSmoothScroller;
KItemListSmoothScroller* m_verticalSmoothScroller;
+ QScroller* m_scroller;
};
#endif