From 20e13c31df64f5fe3dfd410a1b0a0bd78c07ba32 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Fri, 4 Jul 2014 00:49:31 +0200 Subject: Improve drawing selected items in Compact/Details View and Places Panel This commit removes the icon tinting for the selected item in Compact and Details View, and extends the selection rectangle such that it includes the icon area as well. The icon tinting can be disturbing, and having a selection rectangle that only includes the text can look a bit strange, especially in the Places Panel. BUG: 304643 REVIEW: 119018 FIXED-IN: 4.14.0 --- src/kitemviews/kitemlistwidget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kitemviews/kitemlistwidget.h') diff --git a/src/kitemviews/kitemlistwidget.h b/src/kitemviews/kitemlistwidget.h index a06bb5c9c..c086ee6d3 100644 --- a/src/kitemviews/kitemlistwidget.h +++ b/src/kitemviews/kitemlistwidget.h @@ -163,6 +163,11 @@ public: */ virtual QRectF textFocusRect() const; + /** + * @return Rectangle around which a selection box should be drawn if the item is selected. + */ + virtual QRectF selectionRect() const = 0; + /** * @return Rectangle for the selection-toggle that is used to select or deselect an item. * Per default an empty rectangle is returned which means that no selection-toggle -- cgit v1.3