#include <QVBoxLayout>
-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),
AbstractMonitor::~AbstractMonitor()
{
- if (videoSurface)
- delete videoSurface;
+ delete videoSurface;
}
void AbstractMonitor::createVideoSurface()
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"