From 9ea5eb2164a26905034d8d3902e3a483cee8b8fa Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Mon, 11 Mar 2013 18:18:25 +0100 Subject: Do not skip rows in when clicking the empty area of the scroll bar The height of the header widget must be subtracted from the view's height in Details View to determine the "pageStep" for the scroll bar. BUG: 315619 FIXED-IN: 4.10.2 REVIEW: 109210 --- src/kitemviews/kitemlistview.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 2baf20c94..cd59ddcb5 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -162,6 +162,12 @@ public: /** @reimp */ virtual void setGeometry(const QRectF& rect); + /** + * @return The page step which should be used by the vertical scroll bar. + * This is the height of the view except for the header widget. + */ + qreal verticalPageStep() const; + /** * @return Index of the item that is below the point \a pos. * The position is relative to the upper right of -- cgit v1.3