From 4aedb0767490989ea00251a39b8d76f1b51a4303 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 20 Aug 2011 22:52:45 +0200 Subject: Select items when using the rubberband --- src/kitemviews/kitemlistview.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 1ff56babd..3f877d236 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -136,7 +136,19 @@ public: virtual QSizeF itemSizeHint(int index) const; virtual QHash visibleRoleSizes() const; + /** + * @return The bounding rectangle of the item relative to the top/left of + * the currently visible area (see KItemListView::offset()). + */ QRectF itemBoundingRect(int index) const; + + /** + * @return The number of items that can be shown in parallel for one offset. + * Assuming the scrolldirection is vertical then a value of 4 means + * that 4 columns for items are available. Assuming the scrolldirection + * is horizontal then a value of 4 means that 4 lines for items are + * available. + */ int itemsPerOffset() const; void beginTransaction(); -- cgit v1.3.1