KStandardItemListWidget: don't double up the expansion offset

This commit is contained in:
Jan Blackquill 2022-02-26 00:48:00 -05:00
parent c68f1f6f8d
commit 3ce9d1d19e

View 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