Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
0d053c69
Commit
0d053c69
authored
Sep 03, 2017
by
Michael Georg Hansen
Committed by
Jean-Baptiste Mardelle
Sep 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix visibility check of tracks in multitrack-view
Differential Revision:
https://phabricator.kde.org/D7670
parent
67c4958b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/timeline/transitionhandler.cpp
src/timeline/transitionhandler.cpp
+9
-1
No files found.
src/timeline/transitionhandler.cpp
View file @
0d053c69
...
...
@@ -537,9 +537,17 @@ void TransitionHandler::enableMultiTrack(bool enable)
}
type
=
mlt_service_identify
(
nextservice
);
}
// Search for visible tracks and arrange them on a 2x2 grid.
// If there are more than 4 visible tracks, the extra
// tracks will be displayed without rescaling on top of the grid.
// The user has to manually hide them.
for
(
int
i
=
1
,
screen
=
0
;
i
<
tracks
&&
screen
<
4
;
++
i
)
{
Mlt
::
Producer
trackProducer
(
m_tractor
->
track
(
i
));
if
(
QString
(
trackProducer
.
get
(
"hide"
)).
toInt
()
!=
1
)
{
// A track is in hidden state in "hide" has the bit 0x01 set.
// See Track::setInfo (in track.cpp) for details
const
int
trackVisibilityFlags
=
QString
(
trackProducer
.
get
(
"hide"
)).
toInt
();
const
bool
trackVisible
=
(
(
trackVisibilityFlags
&
1
)
==
0
);
if
(
trackVisible
)
{
Mlt
::
Transition
transition
(
*
m_tractor
->
profile
(),
"composite"
);
transition
.
set
(
"mlt_service"
,
"composite"
);
transition
.
set
(
"a_track"
,
0
);
...
...
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