Commit 1d9fdc90 authored by Allen Winter's avatar Allen Winter

src/iconsidepane.cpp - iconsidepane spacing between icons (for Qt5.9.1)

Differential Revision: https://phabricator.kde.org/D7528
parent e4f80693
......@@ -211,7 +211,11 @@ public:
QStyleOptionViewItem optionCopy(*static_cast<const QStyleOptionViewItem *>(&option));
optionCopy.decorationPosition = QStyleOptionViewItem::Top;
#if QT_VERSION < QT_VERSION_CHECK(5,9,0)
const int height = QFontMetrics(painter->font()).height();
#else
const int height = 0;
#endif
optionCopy.decorationSize
= mNavigator->showIcons() ? QSize(mNavigator->iconSize(), mNavigator->iconSize() + height) : QSize();
optionCopy.textElideMode = Qt::ElideNone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment