X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractmonitor.cpp;h=dc9ccd646c9288e682965c9503d06871c63916cc;hb=edb2e9a073ba73424d17da6e0821d0e1c0281a19;hp=c4fa50e626d88883af09da68a889bc32709490df;hpb=409332f58ceda01ec7df0af2d89f991f7660da56;p=kdenlive diff --git a/src/abstractmonitor.cpp b/src/abstractmonitor.cpp index c4fa50e6..dc9ccd64 100644 --- a/src/abstractmonitor.cpp +++ b/src/abstractmonitor.cpp @@ -160,24 +160,4 @@ void VideoContainer::switchFullScreen() } } -VideoSurface::VideoSurface(QWidget* parent) : - QWidget(parent) -{ - // MonitorRefresh is used as container for the SDL display (it's window id is passed to SDL) - setAttribute(Qt::WA_PaintOnScreen); - setAttribute(Qt::WA_OpaquePaintEvent); - setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); - setAttribute(Qt::WA_NoSystemBackground); - //setUpdatesEnabled(false); -} - -void VideoSurface::paintEvent(QPaintEvent *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"