From 517ebd721e12e3a4a3430ac3cba8ce99b33c5b0e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 23 Oct 2011 21:30:40 +0200 Subject: Improve group-header layout - Apply a dynamic width - Use a height that depends on the style - Cleanup some interfaces and replace xxxBoundingRect() by xxxRect() --- src/kitemviews/kitemlistwidget.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kitemviews/kitemlistwidget.h') diff --git a/src/kitemviews/kitemlistwidget.h b/src/kitemviews/kitemlistwidget.h index eae4c39da..2df19a610 100644 --- a/src/kitemviews/kitemlistwidget.h +++ b/src/kitemviews/kitemlistwidget.h @@ -53,7 +53,7 @@ public: QHash data() const; /** - * Draws the hover-bounding-rectangle if the item is hovered. Overwrite this method + * Draws the hover-rectangle if the item is hovered. Overwrite this method * to show the data of the custom model provided by KItemListWidget::data(). * @reimp */ @@ -81,22 +81,22 @@ public: bool alternatingBackgroundColors() const; /** - * @return True if \a point is inside KItemListWidget::hoverBoundingRect(), - * KItemListWidget::textBoundingRect(), KItemListWidget::selectionToggleRect() + * @return True if \a point is inside KItemListWidget::hoverRect(), + * KItemListWidget::textRect(), KItemListWidget::selectionToggleRect() * or KItemListWidget::expansionToggleRect(). * @reimp */ virtual bool contains(const QPointF& point) const; /** - * @return Bounding rectangle for the area that shows the icon. + * @return Rectangle for the area that shows the icon. */ - virtual QRectF iconBoundingRect() const = 0; + virtual QRectF iconRect() const = 0; /** - * @return Bounding rectangle for the area that contains the text-properties. + * @return Rectangle for the area that contains the text-properties. */ - virtual QRectF textBoundingRect() const = 0; + virtual QRectF textRect() const = 0; /** * @return Rectangle for the selection-toggle that is used to select or deselect an item. -- cgit v1.3.1