]> git.sesse.net Git - kdenlive/blobdiff - src/abstractmonitor.cpp
Const'ref
[kdenlive] / src / abstractmonitor.cpp
index e66a4bd18d98a9c72e297af264c5ba4a618c0cd8..eac998a99784ae16d177404a9011031ef7d0d1a5 100644 (file)
@@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager
 
 AbstractMonitor::~AbstractMonitor()
 {
-    if (videoSurface)
-       delete videoSurface;
+    delete videoSurface;
 }
 
 void AbstractMonitor::createVideoSurface()
@@ -169,7 +168,7 @@ VideoSurface::VideoSurface(QWidget* parent) :
     setAttribute(Qt::WA_OpaquePaintEvent);
     setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
     setAttribute(Qt::WA_NoSystemBackground);
-    setUpdatesEnabled(false);
+    //setUpdatesEnabled(false);
 }
 
 void VideoSurface::paintEvent(QPaintEvent *event)
@@ -180,3 +179,5 @@ void VideoSurface::paintEvent(QPaintEvent *event)
     emit refreshMonitor();
 }
 
+
+#include "abstractmonitor.moc"