Commit 0365d54b authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

show current statusbar & fix sizing

statusbar part should take the most space
parent 4877df8e
......@@ -1175,6 +1175,10 @@ void KateMainWindow::slotUpdateBottomViewBar()
statusBarStackedWidget()->addWidget(bs.statusBar());
}
// always activate the current statusbar
Q_ASSERT(bs.statusBar()->parentWidget() == statusBarStackedWidget());
statusBarStackedWidget()->setCurrentWidget(bs.statusBar());
// hide or show the bar
if (bs.state()) {
m_bottomContainerStack->setCurrentWidget(bs.bar());
......
......@@ -924,6 +924,7 @@ MainWindow::MainWindow(QWidget *parentWidget)
m_statusBarStackedWidget = new QStackedWidget(this);
m_statusBarStackedWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
bottomHBoxLaout->addWidget(m_statusBarStackedWidget);
bottomHBoxLaout->setStretch(1, 100);
vlayout->addLayout(bottomHBoxLaout);
m_sidebars[KMultiTabBar::Bottom]->setSplitter(m_vSplitter);
......
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