From: Ahmad Samir Date: Sun, 31 May 2020 07:04:07 +0000 (+0200) Subject: [DolphinStatusBar] Fix free space info height with bigger fonts X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/664f97ff0d1c70f7df4f4fa32303949ee7a6e8fb [DolphinStatusBar] Fix free space info height with bigger fonts When the font height is more than the zoom slider height, use the former to set the fixed height of the free space widget on the status bar. Otherwise the text is cut-off. This works with Breeze, Oxygen and Fusion styles. --- diff --git a/src/statusbar/dolphinstatusbar.cpp b/src/statusbar/dolphinstatusbar.cpp index 8a81960af..a7585bed0 100644 --- a/src/statusbar/dolphinstatusbar.cpp +++ b/src/statusbar/dolphinstatusbar.cpp @@ -115,7 +115,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) : m_zoomSlider->setMaximumWidth(fontMetrics.averageCharWidth() * 25); - m_spaceInfo->setFixedHeight(zoomSliderHeight); + m_spaceInfo->setFixedHeight(contentHeight); m_spaceInfo->setMaximumWidth(fontMetrics.averageCharWidth() * 25); m_spaceInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);