]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistwidget.h
Fix focus-rectangle issues
[dolphin.git] / src / kitemviews / kitemlistwidget.h
index 66d96d44913390681a9fa87d7f93969ad8e11755..4c8ff1a9520fd30975ab1f9f644e0274a866eed2 100644 (file)
@@ -120,6 +120,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