diff options
| author | Felix Ernst <[email protected]> | 2023-11-24 12:18:19 +0100 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2023-11-24 11:52:54 +0000 |
| commit | 139c729b4ab5d0611469f1725468276adcf21f78 (patch) | |
| tree | c9ee0df0c12d516998801df7e96a192e89f24b64 /src | |
| parent | d3637f380ccca26a281331a02ce76ed60e84cfe3 (diff) | |
Reduce status bar minimum width
This is to make sure that when the window is resized it is less
likely that the places panel will be resized only because the
status bar doesn't want to become very narrow in width.
Diffstat (limited to 'src')
| -rw-r--r-- | src/statusbar/dolphinstatusbar.cpp | 2 | ||||
| -rw-r--r-- | src/statusbar/statusbarspaceinfo.cpp | 5 | ||||
| -rw-r--r-- | src/statusbar/statusbarspaceinfo.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/statusbar/dolphinstatusbar.cpp b/src/statusbar/dolphinstatusbar.cpp index 9bc6210dc..22e80b39e 100644 --- a/src/statusbar/dolphinstatusbar.cpp +++ b/src/statusbar/dolphinstatusbar.cpp @@ -52,7 +52,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget *parent) m_label->setTextFormat(Qt::PlainText); // Initialize zoom slider's explanatory label - m_zoomLabel = new QLabel(i18nc("Used as a noun, i.e. 'Here is the zoom level:'", "Zoom:"), this); + m_zoomLabel = new KSqueezedTextLabel(i18nc("Used as a noun, i.e. 'Here is the zoom level:'", "Zoom:"), this); // Initialize zoom widget m_zoomSlider = new QSlider(Qt::Horizontal, this); diff --git a/src/statusbar/statusbarspaceinfo.cpp b/src/statusbar/statusbarspaceinfo.cpp index b9dafe997..5ef5144e5 100644 --- a/src/statusbar/statusbarspaceinfo.cpp +++ b/src/statusbar/statusbarspaceinfo.cpp @@ -99,6 +99,11 @@ void StatusBarSpaceInfo::hideEvent(QHideEvent *event) QWidget::hideEvent(event); } +QSize StatusBarSpaceInfo::minimumSizeHint() const +{ + return QSize(); +} + void StatusBarSpaceInfo::updateMenu() { m_buttonMenu->clear(); diff --git a/src/statusbar/statusbarspaceinfo.h b/src/statusbar/statusbarspaceinfo.h index 9048bd10c..23a77d045 100644 --- a/src/statusbar/statusbarspaceinfo.h +++ b/src/statusbar/statusbarspaceinfo.h @@ -43,6 +43,7 @@ public: protected: void showEvent(QShowEvent *event) override; void hideEvent(QHideEvent *event) override; + QSize minimumSizeHint() const override; void updateMenu(); |
