Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
0365d54b
Commit
0365d54b
authored
Feb 25, 2022
by
Christoph Cullmann
🍨
Browse files
show current statusbar & fix sizing
statusbar part should take the most space
parent
4877df8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
kate/katemainwindow.cpp
View file @
0365d54b
...
...
@@ -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
());
...
...
kate/katemdi.cpp
View file @
0365d54b
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment