mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
[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:
parent
770d083182
commit
664f97ff0d
|
@ -115,7 +115,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) :
|
||||||
|
|
||||||
m_zoomSlider->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
|
m_zoomSlider->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
|
||||||
|
|
||||||
m_spaceInfo->setFixedHeight(zoomSliderHeight);
|
m_spaceInfo->setFixedHeight(contentHeight);
|
||||||
m_spaceInfo->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
|
m_spaceInfo->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
|
||||||
m_spaceInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
m_spaceInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue