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
625c35eb
Commit
625c35eb
authored
Apr 08, 2021
by
Jean-Baptiste Mardelle
2
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2104'
parents
e677e91a
263d2657
Pipeline
#56897
passed with stage
in 10 minutes and 51 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
src/bin/bin.cpp
src/bin/bin.cpp
+4
-1
src/core.cpp
src/core.cpp
+4
-2
src/monitor/monitormanager.cpp
src/monitor/monitormanager.cpp
+7
-2
src/monitor/monitormanager.h
src/monitor/monitormanager.h
+3
-1
No files found.
src/bin/bin.cpp
View file @
625c35eb
...
...
@@ -3008,7 +3008,10 @@ void Bin::doDisplayMessage(const QString &text, KMessageWidget::MessageType type
void
Bin
::
refreshClip
(
const
QString
&
id
)
{
if
(
m_monitor
->
activeClipId
()
==
id
)
{
m_monitor
->
refreshMonitorIfActive
();
if
(
pCore
->
monitorManager
()
->
clipMonitorVisible
())
{
m_monitor
->
slotActivateMonitor
();
}
m_monitor
->
refreshMonitorIfActive
(
true
);
}
}
...
...
src/core.cpp
View file @
625c35eb
...
...
@@ -611,8 +611,10 @@ void Core::refreshProjectItem(const ObjectId &id)
}
break
;
case
ObjectType
::
BinClip
:
m_monitorManager
->
activateMonitor
(
Kdenlive
::
ClipMonitor
);
m_monitorManager
->
refreshClipMonitor
();
if
(
m_monitorManager
->
clipMonitorVisible
())
{
m_monitorManager
->
activateMonitor
(
Kdenlive
::
ClipMonitor
);
m_monitorManager
->
refreshClipMonitor
(
true
);
}
if
(
m_monitorManager
->
projectMonitorVisible
()
&&
m_mainWindow
->
getCurrentTimeline
()
->
controller
()
->
refreshIfVisible
(
id
.
second
))
{
m_monitorManager
->
refreshTimer
.
start
();
}
...
...
src/monitor/monitormanager.cpp
View file @
625c35eb
...
...
@@ -117,9 +117,9 @@ void MonitorManager::refreshProjectMonitor()
m_projectMonitor
->
refreshMonitorIfActive
();
}
void
MonitorManager
::
refreshClipMonitor
()
void
MonitorManager
::
refreshClipMonitor
(
bool
directUpdate
)
{
m_clipMonitor
->
refreshMonitorIfActive
();
m_clipMonitor
->
refreshMonitorIfActive
(
directUpdate
);
}
void
MonitorManager
::
forceProjectMonitorRefresh
()
...
...
@@ -132,6 +132,11 @@ bool MonitorManager::projectMonitorVisible() const
return
(
m_projectMonitor
->
monitorIsFullScreen
()
||
(
m_projectMonitor
->
isVisible
()
&&
!
m_projectMonitor
->
visibleRegion
().
isEmpty
()));
}
bool
MonitorManager
::
clipMonitorVisible
()
const
{
return
(
m_clipMonitor
->
monitorIsFullScreen
()
||
(
m_clipMonitor
->
isVisible
()
&&
!
m_clipMonitor
->
visibleRegion
().
isEmpty
()));
}
bool
MonitorManager
::
activateMonitor
(
Kdenlive
::
MonitorId
name
)
{
if
((
m_activeMonitor
!=
nullptr
)
&&
m_activeMonitor
->
id
()
==
name
)
{
...
...
src/monitor/monitormanager.h
View file @
625c35eb
...
...
@@ -70,6 +70,8 @@ public:
bool
isMultiTrack
()
const
;
/** @brief Returns true if the project monitor is visible (and not tabbed under another dock. */
bool
projectMonitorVisible
()
const
;
/** @brief Returns true if the clip monitor is visible (and not tabbed under another dock. */
bool
clipMonitorVisible
()
const
;
QTimer
refreshTimer
;
static
const
double
speedArray
[
5
];
...
...
@@ -98,7 +100,7 @@ public slots:
void
refreshProjectMonitor
();
/** @brief Refresh project monitor if the timeline cursor is inside the range. */
void
refreshProjectRange
(
QPair
<
int
,
int
>
range
);
void
refreshClipMonitor
();
void
refreshClipMonitor
(
bool
directUpdate
=
false
);
/** @brief Switch current monitor to fullscreen. */
void
slotSwitchFullscreen
();
...
...
manuel muzzurru
@manuelmuzzurru
mentioned in issue
#1034
·
Apr 09, 2021
mentioned in issue
#1034
mentioned in issue #1034
Toggle commit list
manuel muzzurru
@manuelmuzzurru
mentioned in issue
#1026
·
Apr 09, 2021
mentioned in issue
#1026
mentioned in issue #1026
Toggle commit list
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