]> cloud.milkyroute.net Git - dolphin.git/commitdiff
KStandardItemListWidget: don't double up the expansion offset
authorJan Blackquill <uhhadd@gmail.com>
Sat, 26 Feb 2022 05:48:00 +0000 (00:48 -0500)
committerJan Blackquill <uhhadd@gmail.com>
Sat, 26 Feb 2022 05:48:00 +0000 (00:48 -0500)
src/kitemviews/kstandarditemlistwidget.cpp

index e5c2f021bca0f7376a03f66fd1c581fd5f361bfe..d04ef370bb02c7ab38c8179d99fba3002c4601bf 100644 (file)
@@ -1107,7 +1107,7 @@ void KStandardItemListWidget::updatePixmapCache()
                 0;
 
         m_pixmapPos.setX(layoutDirection() == Qt::LeftToRight
-            ? x - iPadding - width + expansionOffset
+            ? x - iPadding - width
             : size().width() - iPadding - width - expansionOffset);
 
         // Derive icon's vertical center from the center of the text frame, including