]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistcontainer.h
Fix potential endless loop in layout
[dolphin.git] / src / kitemviews / kitemlistcontainer.h
index 4d6eadbbbd4356a6f3671e38cf2e9a031a5d7faa..b41f48a7f189d556e0203e55a90de6d24e6578a0 100644 (file)
@@ -70,6 +70,13 @@ private:
     void updateGeometries();
     void updateSmoothScrollers(Qt::Orientation orientation);
 
+    /**
+     * Helper method for updateScrollOffsetScrollBar(). Updates the scrollbar-policy
+     * to Qt::ScrollBarAlwaysOn for cases where turning off the scrollbar might lead
+     * to an endless layout loop (see bug #293318).
+     */
+    void updateScrollOffsetScrollBarPolicy();
+
 private:
     KItemListController* m_controller;