From 861c4d854879b4e0358ad2f02d22753c37d57006 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 11 Sep 2020 15:24:17 +0200 Subject: Deprecate implicit QPixmap conversion to QBitmap It is lossy, so should be requested explicitly, using a dedicated fromPixmap factory function. Deprecate the constructor and assignment operator, and make the constructor explicit. [ChangeLog][QtGui][QBitmap] Implicitly constructing and assigning to a QBitmap from a QPixmap has been deprecated, and the respective constructor has been made explicit. Use the fromPixmap factory function instead. Change-Id: I68ce85b26c901415137b664a1db687021d48bae0 Reviewed-by: Lars Knoll --- tests/auto/gui/painting/qregion/tst_qregion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui') diff --git a/tests/auto/gui/painting/qregion/tst_qregion.cpp b/tests/auto/gui/painting/qregion/tst_qregion.cpp index dc694e1107..27327d8d1a 100644 --- a/tests/auto/gui/painting/qregion/tst_qregion.cpp +++ b/tests/auto/gui/painting/qregion/tst_qregion.cpp @@ -382,7 +382,7 @@ void tst_QRegion::bitmapRegion() QVERIFY(region.isEmpty()); } { - circle = QPixmap(circle_xpm); + circle = QBitmap::fromPixmap(QPixmap(circle_xpm)); QRegion region(circle); //// These should not be inside the circe -- cgit v1.2.3