summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <[email protected]>2017-12-19 15:19:41 -0500
committerAllen Winter <[email protected]>2017-12-19 15:19:41 -0500
commit1d9fdc90ffcaddac659ff23a72e61eead72ee8f5 (patch)
treeea333f5c2f10de16684cde5b8718e2c6d9d8e6d7
parente4f80693699902969115290073d8f1c4db8d78a3 (diff)
src/iconsidepane.cpp - iconsidepane spacing between icons (for Qt5.9.1)
Differential Revision: https://phabricator.kde.org/D7528
-rw-r--r--src/iconsidepane.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iconsidepane.cpp b/src/iconsidepane.cpp
index a3e1b3b..80bad5a 100644
--- a/src/iconsidepane.cpp
+++ b/src/iconsidepane.cpp
@@ -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;