diff options
| author | Peter Penz <[email protected]> | 2011-10-23 21:30:40 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-10-23 21:32:35 +0200 |
| commit | 517ebd721e12e3a4a3430ac3cba8ce99b33c5b0e (patch) | |
| tree | cfc30b7ac02f13fdefa1d53e6c8516a27c90e4ca /src/kitemviews/kitemlistview.h | |
| parent | 930b3070ffcf45fae26ad0edb0125d1467f7b4a6 (diff) | |
Improve group-header layout
- Apply a dynamic width
- Use a height that depends on the style
- Cleanup some interfaces and replace xxxBoundingRect() by
xxxRect()
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
| -rw-r--r-- | src/kitemviews/kitemlistview.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 985b7c278..fd2f286db 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -162,10 +162,10 @@ public: virtual QHash<QByteArray, QSizeF> visibleRolesSizes(const KItemRangeList& itemRanges) const; /** - * @return The bounding rectangle of the item relative to the top/left of + * @return The rectangle of the item relative to the top/left of * the currently visible area (see KItemListView::offset()). */ - QRectF itemBoundingRect(int index) const; + QRectF itemRect(int index) const; /** * @return The number of items that can be shown in parallel for one offset. @@ -336,6 +336,13 @@ private: void updateGroupHeaderForWidget(KItemListWidget* widget); /** + * Updates the position and size of the group-header that belongs + * to the itemlist widget \a widget. The given widget must represent + * the first item of a group. + */ + void updateGroupHeaderLayout(KItemListWidget* widget); + + /** * Recycles the group-header from the widget. */ void recycleGroupHeaderForWidget(KItemListWidget* widget); |
