diff options
| author | Frank Reininghaus <[email protected]> | 2014-07-04 00:49:31 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2014-07-04 00:49:46 +0200 |
| commit | 20e13c31df64f5fe3dfd410a1b0a0bd78c07ba32 (patch) | |
| tree | 85276ce9288334d6f46ef6aea8386ebdf8fa187f /src/kitemviews/kitemlistwidget.h | |
| parent | 4d8f89f55a030758bf818a668bf6edad451df356 (diff) | |
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
Diffstat (limited to 'src/kitemviews/kitemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kitemlistwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -164,6 +164,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 * is available. |
