]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[DolphinStatusBar] Fix free space info height with bigger fonts
authorAhmad Samir <a.samirh78@gmail.com>
Sun, 31 May 2020 07:04:07 +0000 (09:04 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 31 May 2020 21:30:22 +0000 (21:30 +0000)
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.

src/statusbar/dolphinstatusbar.cpp

index 8a81960af20ac7ffdcac5b18803f39b47efcb206..a7585bed023632e3dadaa39c1e96e0369f0f2c7b 100644 (file)
@@ -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);