]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistviewlayouter_p.h
First version of a unit test for KItemListController
[dolphin.git] / src / kitemviews / kitemlistviewlayouter_p.h
index 109528c634d56ed08d491dc28379585c9eca8f50..25f8eb6cda91668d1172057a28da982d8a670ade 100644 (file)
@@ -107,13 +107,6 @@ public:
      */
     int maximumVisibleItems() const;
 
-    /**
-     * @return Maximum number of items that can be shown in the same row
-     *          (= vertical scrolldirection) or same column
-     *          (= horizontal scrolldirection).
-     */
-    int itemsPerOffset() const;
-
     /**
      * @return True if the item with the index \p itemIndex
      *         is the first item within a group.
@@ -127,6 +120,16 @@ private:
     void updateVisibleIndexes();
     bool createGroupHeaders();
 
+    /**
+     * @return Minimum width of group headers when grouping is enabled in the horizontal
+     *         alignment mode. The header alignment is done like this:
+     *         Header-1 Header-2 Header-3
+     *         Item 1   Item 4   Item 7
+     *         Item 2   Item 5   Item 8
+     *         Item 3   Item 6   Item 9
+     */
+    qreal minimumGroupHeaderWidth() const;
+
 private:
     bool m_dirty;
     bool m_visibleIndexesDirty;
@@ -158,6 +161,8 @@ private:
     qreal m_groupHeaderHeight;
 
     QList<QRectF> m_itemRects;
+
+    friend class KItemListControllerTest;
 };
 
 #endif