From 79f6805f3300e3d0916c189371e1d51d2064704c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Carrillo?= Date: Fri, 17 May 2024 10:31:24 -0500 Subject: [PATCH] [tests] Fixes for Qt6 --- .../src/python/test_qgsprofilesourceregistry.py | 4 ++-- .../expected_custom_profile_mask.png | Bin 0 -> 11618 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png diff --git a/tests/src/python/test_qgsprofilesourceregistry.py b/tests/src/python/test_qgsprofilesourceregistry.py index 7b2496d754d0..e0efc6d2ba02 100644 --- a/tests/src/python/test_qgsprofilesourceregistry.py +++ b/tests/src/python/test_qgsprofilesourceregistry.py @@ -108,8 +108,8 @@ def renderResults(self, context): if not painter: return - painter.setBrush(Qt.NoBrush) - painter.setPen(Qt.NoPen) + painter.setBrush(Qt.BrushStyle.NoBrush) + painter.setPen(Qt.PenStyle.NoPen) minDistance = context.distanceRange().lower() maxDistance = context.distanceRange().upper() diff --git a/tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png b/tests/testdata/control_images/expected_custom_profile/expected_custom_profile_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..4490b53f657320d5a47e4c79ca8f56174b828282 GIT binary patch literal 11618 zcmeHNYgAKbx{mEst(F3!pj<0hK;J6UV(LcZ;<(S*%|++oYerx8cV9y2Cg1uhltO zum3hgX>7-nEnd2zYa}k~i*$GV_{lGZ_a3{P*p&OT)2YC$SFiRRPFGews$OFR8uRF+_e9#ne!co?Wi)#;Ybp$CEfc2Obiw2720Be{PXbSdNbsB z_=m0V_sWg~U%=s;P1}*T_$pcHQ#kx+m$U{BhjiQEFKUM}ye10u)5qKXW|H$Bv!A0- zt#_OZHy63=vKT&Xl3na&V$i+*N;+9dIZIT4*u2$#w0{R2{}~(q{eb1=LY-(eHMRfU zh#yz&qa%Ne?SDOQ?X8sjLGW2;XQ!E!)mEF!GfD5>z1ym#m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