summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/customvideosurface/customvideowidget
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-02 14:03:11 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-14 07:40:42 +0000
commitfbb8b1ee626955fce61af7fc21f64ebed2c8cb5c (patch)
treed32b96794cfd94e3cbe601d97a5519859b30ba2e /examples/multimediawidgets/customvideosurface/customvideowidget
parente2275ade82540561ca026325ff945fdfa90f13fe (diff)
Fix warnings about deprecated QPalette enumerations and functions
videowidget.cpp:625:32: warning: 'Background' is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] qgstreamervideowidget.cpp:56:36: warning: 'Background' is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] qgstreamervideowidget.cpp:56:36: warning: 'Background' is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] qgstreamervideowidget.cpp:83:55: warning: 'const QBrush& QPalette::background() const' is deprecated: Use QPalette::window() instead [-Wdeprecated-declarations] Change-Id: Ieb55a57c5672d3023a48461ec347fbb30210fd1e Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'examples/multimediawidgets/customvideosurface/customvideowidget')
-rw-r--r--examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
index 7ee3eb541..513df4f31 100644
--- a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
+++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
@@ -64,7 +64,7 @@ VideoWidget::VideoWidget(QWidget *parent)
setAttribute(Qt::WA_NoSystemBackground, true);
QPalette palette = this->palette();
- palette.setColor(QPalette::Background, Qt::black);
+ palette.setColor(QPalette::Window, Qt::black);
setPalette(palette);
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);