summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-06 03:03:58 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-06 03:03:58 +0200
commit9c129775f17c58876ad97f258c5f15d24d1b16b1 (patch)
treec1830977967f0ea82a2d26cec106a533e3a2ddfc
parentf51c9010772e86d92740ed73ebae00567d980715 (diff)
parentf787689e74dee63c55f2731683a4ede752fd9e44 (diff)
Merge remote-tracking branch 'origin/5.13' into dev
-rw-r--r--examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp4
-rw-r--r--tests/auto/unit/qvideoframe/tst_qvideoframe.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
index 513df4f31..12ac34a35 100644
--- a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
+++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp
@@ -100,7 +100,7 @@ void VideoWidget::paintEvent(QPaintEvent *event)
QRegion region = event->region();
region = region.subtracted(videoRect);
- QBrush brush = palette().background();
+ QBrush brush = palette().window();
for (const QRect &rect : region)
painter.fillRect(rect, brush);
@@ -108,7 +108,7 @@ void VideoWidget::paintEvent(QPaintEvent *event)
surface->paint(&painter);
} else {
- painter.fillRect(event->rect(), palette().background());
+ painter.fillRect(event->rect(), palette().window());
}
}
//! [3]
diff --git a/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp b/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
index 63307913b..6be039108 100644
--- a/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
+++ b/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
@@ -733,7 +733,7 @@ void tst_QVideoFrame::mapImage()
QVERIFY(frame.map(mode));
QVERIFY(frame.bits());
- QCOMPARE(frame.mappedBytes(), image.byteCount());
+ QCOMPARE(qsizetype(frame.mappedBytes()), image.sizeInBytes());
QCOMPARE(frame.bytesPerLine(), image.bytesPerLine());
QCOMPARE(frame.mapMode(), mode);