From aeb8cfe2a2b5ffe68b67793b5c0f3aeb894e6d8a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 6 Aug 2012 20:46:55 +0200 Subject: Remove the WA_PaintOnScreen widget attribute for vide widgets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This attribute doesn't quite do what it used to do in Qt 4.x anymore, and will lead to Qt not painting the video at all. Change-Id: I2338815756cab82ae152058ff5a7b5f14e07001e Reviewed-by: Samuel Rødal --- examples/videowidget/videowidget.cpp | 1 - src/gsttools/qgstreamervideowidget.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/videowidget/videowidget.cpp b/examples/videowidget/videowidget.cpp index d569ff976..42425281e 100644 --- a/examples/videowidget/videowidget.cpp +++ b/examples/videowidget/videowidget.cpp @@ -52,7 +52,6 @@ VideoWidget::VideoWidget(QWidget *parent) { setAutoFillBackground(false); setAttribute(Qt::WA_NoSystemBackground, true); - setAttribute(Qt::WA_PaintOnScreen, true); QPalette palette = this->palette(); palette.setColor(QPalette::Background, Qt::black); diff --git a/src/gsttools/qgstreamervideowidget.cpp b/src/gsttools/qgstreamervideowidget.cpp index 0aa29ef1c..3665fc84f 100644 --- a/src/gsttools/qgstreamervideowidget.cpp +++ b/src/gsttools/qgstreamervideowidget.cpp @@ -167,7 +167,6 @@ bool QGstreamerVideoWidgetControl::eventFilter(QObject *object, QEvent *e) // Setting these values ensures smooth resizing since it // will prevent the system from clearing the background m_widget->setAttribute(Qt::WA_NoSystemBackground, true); - m_widget->setAttribute(Qt::WA_PaintOnScreen, true); } else if (e->type() == QEvent::Resize) { // This is a workaround for missing background repaints // when reducing window size -- cgit v1.2.3