mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +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:
parent
d3637f380c
commit
139c729b4a
|
@ -52,7 +52,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget *parent)
|
||||||
m_label->setTextFormat(Qt::PlainText);
|
m_label->setTextFormat(Qt::PlainText);
|
||||||
|
|
||||||
// Initialize zoom slider's explanatory label
|
// 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
|
// Initialize zoom widget
|
||||||
m_zoomSlider = new QSlider(Qt::Horizontal, this);
|
m_zoomSlider = new QSlider(Qt::Horizontal, this);
|
||||||
|
|
|
@ -99,6 +99,11 @@ void StatusBarSpaceInfo::hideEvent(QHideEvent *event)
|
||||||
QWidget::hideEvent(event);
|
QWidget::hideEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QSize StatusBarSpaceInfo::minimumSizeHint() const
|
||||||
|
{
|
||||||
|
return QSize();
|
||||||
|
}
|
||||||
|
|
||||||
void StatusBarSpaceInfo::updateMenu()
|
void StatusBarSpaceInfo::updateMenu()
|
||||||
{
|
{
|
||||||
m_buttonMenu->clear();
|
m_buttonMenu->clear();
|
||||||
|
|
|
@ -43,6 +43,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void showEvent(QShowEvent *event) override;
|
void showEvent(QShowEvent *event) override;
|
||||||
void hideEvent(QHideEvent *event) override;
|
void hideEvent(QHideEvent *event) override;
|
||||||
|
QSize minimumSizeHint() const override;
|
||||||
|
|
||||||
void updateMenu();
|
void updateMenu();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue