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
4905a901
Commit
4905a901
authored
Sep 23, 2021
by
Julius Künzel
⚠
Browse files
Previous commit: Load current color properly to UI
parent
2a81464e
Pipeline
#82195
passed with stage
in 8 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
4905a901
...
...
@@ -393,7 +393,13 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren
QAction
*
pinkAction
=
m_background
->
addAction
(
QIcon
(),
i18n
(
"Pink"
));
pinkAction
->
setData
(
"#ff00ff"
);
m_configMenu
->
addAction
(
m_background
);
m_background
->
setCurrentAction
(
blackAction
);
if
(
KdenliveSettings
::
monitor_background
()
==
whiteAction
->
data
().
toString
())
{
m_background
->
setCurrentAction
(
whiteAction
);
}
else
if
(
KdenliveSettings
::
monitor_background
()
==
pinkAction
->
data
().
toString
())
{
m_background
->
setCurrentAction
(
pinkAction
);
}
else
{
m_background
->
setCurrentAction
(
blackAction
);
}
connect
(
m_background
,
static_cast
<
void
(
KSelectAction
::*
)(
QAction
*
)
>
(
&
KSelectAction
::
triggered
),
this
,
[
this
](
QAction
*
a
){
KdenliveSettings
::
setMonitor_background
(
a
->
data
().
toString
());
buildBackgroundedProducer
(
position
());
...
...
Write
Preview
Supports
Markdown
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