Commit 664f97ff authored by Ahmad Samir's avatar Ahmad Samir Committed by Elvis Angelaccio
Browse files

[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.
parent 770d0831
......@@ -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);
......
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