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
Multimedia
Kdenlive
Commits
71f4c682
Commit
71f4c682
authored
Dec 26, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix multiple bins should always stay tabbed together.
Related to
#1290
parent
fbe72601
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/layoutmanagement.cpp
View file @
71f4c682
...
...
@@ -215,6 +215,7 @@ bool LayoutManagement::loadLayout(const QString &layoutId, bool selectButton)
}
pCore
->
window
()
->
centralWidget
()
->
setHidden
(
!
timelineVisible
);
pCore
->
window
()
->
restoreState
(
state
);
pCore
->
window
()
->
tabifyBins
();
if
(
selectButton
)
{
// Activate layout button
QList
<
QAbstractButton
*>
buttons
=
m_containerGrp
->
buttons
();
...
...
src/mainwindow.cpp
View file @
71f4c682
...
...
@@ -4607,6 +4607,16 @@ void MainWindow::addBin(Bin *bin, const QString &binName)
m_binWidgets
<<
bin
;
}
void
MainWindow
::
tabifyBins
()
{
QList
<
QDockWidget
*>
docks
=
findChildren
<
QDockWidget
*>
();
for
(
auto
dock
:
qAsConst
(
docks
))
{
if
(
dock
->
objectName
().
startsWith
(
QLatin1String
(
"project_bin_"
)))
{
tabifyDockWidget
(
m_projectBinDock
,
dock
);
}
}
}
Bin
*
MainWindow
::
getBin
()
{
if
(
m_binWidgets
.
isEmpty
())
{
...
...
src/mainwindow.h
View file @
71f4c682
...
...
@@ -140,6 +140,8 @@ public:
Bin
*
getBin
();
/** @brief Get the active (focused) bin or first one if none is active*/
Bin
*
activeBin
();
/** @brief Ensure all bin widgets are tabbed together*/
void
tabifyBins
();
int
binCount
()
const
;
/** @brief Hide subtitle track */
...
...
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