]> git.sesse.net Git - kdenlive/blobdiff - src/monitor.cpp
Cleanup effect stack (part 2) - show monitor scene when required
[kdenlive] / src / monitor.cpp
index 3a69d0f7e13926566876ab9f1aa7fe5a303c0504..2c9e6f2c3e697b534bbc61a201a99a26f5044ad3 100644 (file)
@@ -986,9 +986,11 @@ void Monitor::slotSetSelectedClip(Transition* item)
 }
 
 
-void Monitor::slotEffectScene(bool show)
+void Monitor::slotShowEffectScene(bool show)
 {
     if (m_id == Kdenlive::projectMonitor) {
+       kDebug()<<"// SHOWING SCENE: "<<show<<", IS DISPLAYD: "<<m_effectWidget->isVisible();
+       if (m_effectWidget->isVisible() == show) return;
         if (videoSurface) {
             videoSurface->setVisible(!show);
         } else {
@@ -1051,6 +1053,12 @@ void Monitor::reloadProducer(const QString &id)
         slotSetClipProducer(m_currentClip, m_currentClip->zone(), true);
 }
 
+void Monitor::setPalette ( const QPalette & p)
+{
+    QWidget::setPalette(p);
+    if (m_ruler) m_ruler->updatePalette();
+    
+}
 
 Overlay::Overlay(QWidget* parent) :
     QLabel(parent)