1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

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.
This commit is contained in:
Felix Ernst 2023-11-24 12:18:19 +01:00 committed by Felix Ernst
parent d3637f380c
commit 139c729b4a
3 changed files with 7 additions and 1 deletions

View File

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

View File

@ -99,6 +99,11 @@ void StatusBarSpaceInfo::hideEvent(QHideEvent *event)
QWidget::hideEvent(event);
}
QSize StatusBarSpaceInfo::minimumSizeHint() const
{
return QSize();
}
void StatusBarSpaceInfo::updateMenu()
{
m_buttonMenu->clear();

View File

@ -43,6 +43,7 @@ public:
protected:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
QSize minimumSizeHint() const override;
void updateMenu();