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
Multimedia
Kdenlive
Commits
16b8a091
Commit
16b8a091
authored
Mar 19, 2020
by
Sashmita Raghav
Committed by
Jean-Baptiste Mardelle
Mar 20, 2020
Browse files
Add menu item in timeline to change audio thumbnail format
(cherry picked from commit
1fac2573
)
parent
a9e55149
Pipeline
#16827
passed with stage
in 16 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
16b8a091
...
...
@@ -561,6 +561,11 @@ void MainWindow::init()
timelineHeadersMenu
->
addAction
(
actionCollection
()
->
action
(
QStringLiteral
(
"insert_track"
)));
timelineHeadersMenu
->
addAction
(
actionCollection
()
->
action
(
QStringLiteral
(
"delete_track"
)));
timelineHeadersMenu
->
addAction
(
actionCollection
()
->
action
(
QStringLiteral
(
"show_track_record"
)));
QAction
*
separate_channels
=
new
QAction
(
QIcon
(),
i18n
(
"Separate Channels"
),
this
);
separate_channels
->
setCheckable
(
true
);
separate_channels
->
setChecked
(
KdenliveSettings
::
displayallchannels
());
connect
(
separate_channels
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotSeparateAudioChannel
);
timelineHeadersMenu
->
addAction
(
separate_channels
);
QMenu
*
thumbsMenu
=
new
QMenu
(
i18n
(
"Thumbnails"
),
this
);
QActionGroup
*
thumbGroup
=
new
QActionGroup
(
this
);
QAction
*
inFrame
=
new
QAction
(
i18n
(
"In Frame"
),
thumbGroup
);
...
...
@@ -2566,6 +2571,12 @@ void MainWindow::slotRemoveAllSpace()
getMainTimeline
()
->
controller
()
->
removeSpace
(
-
1
,
-
1
,
true
);
}
void
MainWindow
::
slotSeparateAudioChannel
()
{
KdenliveSettings
::
setDisplayallchannels
(
!
KdenliveSettings
::
displayallchannels
());
getCurrentTimeline
()
->
controller
()
->
audioThumbFormatChanged
();
}
void
MainWindow
::
slotInsertTrack
()
{
pCore
->
monitorManager
()
->
activateMonitor
(
Kdenlive
::
ProjectMonitor
);
...
...
src/mainwindow.h
View file @
16b8a091
...
...
@@ -380,6 +380,7 @@ private slots:
void
slotResizeItemStart
();
void
slotResizeItemEnd
();
void
configureNotifications
();
void
slotSeparateAudioChannel
();
void
slotInsertTrack
();
void
slotDeleteTrack
();
void
slotShowTrackRec
();
...
...
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