X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractmonitor.cpp;h=c4fa50e626d88883af09da68a889bc32709490df;hb=c24658bd34221d735f0641c924b890e1a6be7101;hp=b1b3875c67577330ec83ba99c481ef58da014660;hpb=f2f647f6220099121190250e89983e1585bf3cef;p=kdenlive diff --git a/src/abstractmonitor.cpp b/src/abstractmonitor.cpp index b1b3875c..c4fa50e6 100644 --- a/src/abstractmonitor.cpp +++ b/src/abstractmonitor.cpp @@ -29,7 +29,7 @@ #include -AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager, QWidget *parent): +AbstractMonitor::AbstractMonitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *parent): QWidget(parent), videoSurface(NULL), m_id(id), @@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager AbstractMonitor::~AbstractMonitor() { - if (videoSurface) - delete videoSurface; + delete videoSurface; } void AbstractMonitor::createVideoSurface() @@ -174,9 +173,11 @@ VideoSurface::VideoSurface(QWidget* parent) : void VideoSurface::paintEvent(QPaintEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) //WARNING: This might trigger unnecessary refreshes from MLT's producer, but without this, // as soon as monitor is covered by a popup menu or another window, image is corrupted. emit refreshMonitor(); } + +#include "abstractmonitor.moc"