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
90cf5ed1
Commit
90cf5ed1
authored
Feb 26, 2022
by
Christoph Cullmann
🍨
Browse files
allow mainwindow to shrink again
parent
ff7e0aec
Pipeline
#142674
passed with stage
in 3 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kate/katemainwindow.cpp
View file @
90cf5ed1
...
...
@@ -1170,7 +1170,7 @@ void KateMainWindow::slotUpdateBottomViewBar()
Q_ASSERT
(
bs
.
statusBar
());
// ensure we don't mess up the vertical sizing
bs
.
statusBar
()
->
setSizePolicy
(
QSizePolicy
::
Minimum
Expanding
,
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
());
...
...
kate/katemdi.cpp
View file @
90cf5ed1
...
...
@@ -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
::
Minimum
Expanding
,
QSizePolicy
::
Fixed
);
m_statusBarStackedWidget
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Fixed
);
bottomHBoxLaout
->
addWidget
(
m_statusBarStackedWidget
);
bottomHBoxLaout
->
setStretch
(
0
,
100
);
vlayout
->
addLayout
(
bottomHBoxLaout
);
...
...
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