Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
52e08628
Commit
52e08628
authored
May 28, 2021
by
Tomaz Canabrava
Committed by
Tomaz Canabrava
Jun 07, 2021
Browse files
Restore the sizes so the splits don't resize after rearrange
parent
208181d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/widgets/ViewSplitter.cpp
View file @
52e08628
...
...
@@ -137,11 +137,15 @@ void ViewSplitter::childEvent(QChildEvent *event)
auto
*
parent_splitter
=
qobject_cast
<
ViewSplitter
*>
(
parentWidget
());
if
(
parent_splitter
)
{
parent_splitter
->
m_blockPropagatedDeletion
=
true
;
auto
sizes
=
parent_splitter
->
sizes
();
auto
*
wdg
=
widget
(
0
);
const
int
oldContainerIndex
=
parent_splitter
->
indexOf
(
this
);
wdg
->
setParent
(
nullptr
);
parent_splitter
->
insertWidget
(
oldContainerIndex
,
wdg
);
parent_splitter
->
m_blockPropagatedDeletion
=
false
;
setParent
(
nullptr
);
parent_splitter
->
setSizes
(
sizes
);
wdg
->
setFocus
();
deleteLater
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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