]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Merge branch 'Applications/18.04'
authorNathaniel Graham <nate@kde.org>
Fri, 20 Apr 2018 01:01:01 +0000 (19:01 -0600)
committerNathaniel Graham <nate@kde.org>
Fri, 20 Apr 2018 01:01:01 +0000 (19:01 -0600)
src/views/dolphinitemlistview.cpp

index 0655b33080e3b2cf2ec1b71f18248ae807b48493..4651d106845d05ea211efed19c8c063950093ea2 100644 (file)
@@ -179,14 +179,6 @@ void DolphinItemListView::updateGridSize()
         const int minItemWidth = 48;
         itemWidth = minItemWidth + IconsModeSettings::textWidthIndex() * 64;
 
-        if (previewsShown()) {
-            // Optimize the width for previews with a 3:2 aspect ratio instead
-            // of a 1:1 ratio to avoid wasting too much vertical space when
-            // showing photos.
-            const int minWidth = iconSize * 3 / 2;
-            itemWidth = qMax(itemWidth, minWidth);
-        }
-
         if (itemWidth < iconSize + padding * 2) {
             itemWidth = iconSize + padding * 2;
         }