┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistwidget.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-04-02 22:15:57 +0200
committerPeter Penz <[email protected]>2012-04-02 22:20:10 +0200
commitfdab593c01964ff4e5bf6c7cc093b802d0a1bbf7 (patch)
tree5b99db838080ccdd2279f15af7d7382e16b5173c /src/kitemviews/kitemlistwidget.h
parenta4ede4e0ebaf0bba57da8fc2924577f1a8ff7b54 (diff)
Fix focus-rectangle issues
Assure that the focus-rectangle exactly matches to the bottom of the rendered text. BUG: 297203 BUG: 289804 FIXED-IN: 4.9.0
Diffstat (limited to 'src/kitemviews/kitemlistwidget.h')
-rw-r--r--src/kitemviews/kitemlistwidget.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistwidget.h b/src/kitemviews/kitemlistwidget.h
index 66d96d449..4c8ff1a95 100644
--- a/src/kitemviews/kitemlistwidget.h
+++ b/src/kitemviews/kitemlistwidget.h
@@ -121,6 +121,15 @@ public:
virtual QRectF textRect() const = 0;
/**
+ * @return Focus rectangle for indicating the current item. Per default
+ * textRect() will be returned. Overwrite this method if textRect()
+ * provides a larger rectangle than the actual text (e.g. to
+ * be aligned with the iconRect()). The textFocusRect() may not be
+ * outside the boundaries of textRect().
+ */
+ virtual QRectF textFocusRect() const;
+
+ /**
* @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.