]> git.sesse.net Git - kdenlive/blobdiff - src/monitormanager.cpp
Fix up a busted preprocessor check [PATCH by Ray Lehtiniemi]
[kdenlive] / src / monitormanager.cpp
index a0ed893a012e1d6f92433d3b9cfd993f8221c37b..c620ece28ced9d1f7ac9bb58d56903cb24e7f870 100644 (file)
  ***************************************************************************/
 
 
+#include "monitormanager.h"
+#include "kdenlivesettings.h"
+
+#include <mlt++/Mlt.h>
+
 #include <QObject>
 #include <QTimer>
 
-#include "monitormanager.h"
-#include <mlt++/Mlt.h>
 
 MonitorManager::MonitorManager(QWidget *parent)
         : QObject(parent) {
@@ -77,6 +80,16 @@ void MonitorManager::slotPlay() {
     else m_projectMonitor->slotPlay();
 }
 
+void MonitorManager::slotPlayZone() {
+    if (m_clipMonitor->isActive()) m_clipMonitor->slotPlayZone();
+    else m_projectMonitor->slotPlayZone();
+}
+
+void MonitorManager::slotLoopZone() {
+    if (m_clipMonitor->isActive()) m_clipMonitor->slotLoopZone();
+    else m_projectMonitor->slotLoopZone();
+}
+
 void MonitorManager::slotRewind(double speed) {
     if (m_clipMonitor->isActive()) m_clipMonitor->slotRewind(speed);
     else m_projectMonitor->slotRewind(speed);
@@ -119,7 +132,7 @@ void MonitorManager::slotEnd() {
 
 void MonitorManager::resetProfiles(Timecode tc) {
     m_timecode = tc;
-    slotResetProfiles();
+    QTimer::singleShot(300, this, SLOT(slotResetProfiles()));
 }
 
 void MonitorManager::slotResetProfiles() {