[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.
This commit is contained in:
Ahmad Samir 2020-05-31 09:04:07 +02:00 committed by Elvis Angelaccio
parent 770d083182
commit 664f97ff0d

View 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);