┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2020-05-31 09:04:07 +0200
committerElvis Angelaccio <[email protected]>2020-05-31 21:30:22 +0000
commit664f97ff0d1c70f7df4f4fa32303949ee7a6e8fb (patch)
treebff046b58e1d711d0958069d8bdba61bb5a88739 /src/statusbar
parent770d083182fdcc85c5aad7d686cc5f4aa772f3e7 (diff)
[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.
Diffstat (limited to 'src/statusbar')
-rw-r--r--src/statusbar/dolphinstatusbar.cpp2
1 files changed, 1 insertions, 1 deletions
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);