Commit 90cf5ed1 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

allow mainwindow to shrink again

parent ff7e0aec
Pipeline #142674 passed with stage
in 3 minutes and 48 seconds
......@@ -1170,7 +1170,7 @@ void KateMainWindow::slotUpdateBottomViewBar()
Q_ASSERT(bs.statusBar());
// ensure we don't mess up the vertical sizing
bs.statusBar()->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
bs.statusBar()->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
// add the status bar to our status bar stack, there we will show/hide it
statusBarStackedWidget()->addWidget(bs.statusBar());
......
......@@ -922,7 +922,7 @@ MainWindow::MainWindow(QWidget *parentWidget)
auto bottomHBoxLaout = new QHBoxLayout;
bottomHBoxLaout->addWidget(m_sidebars[KMultiTabBar::Bottom].get());
m_statusBarStackedWidget = new QStackedWidget(this);
m_statusBarStackedWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
m_statusBarStackedWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
bottomHBoxLaout->addWidget(m_statusBarStackedWidget);
bottomHBoxLaout->setStretch(0, 100);
vlayout->addLayout(bottomHBoxLaout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment