From aa90a3e934a99d8db73bde2848af71eac52f30f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sun, 11 Oct 2026 12:48:21 -0400 Subject: [PATCH] 14.24 round 3: the magnifier beside a Hand drag --- tests/CanvasNavigationTests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CanvasNavigationTests.cpp b/tests/CanvasNavigationTests.cpp index ba04549..7af6d14 100644 --- a/tests/CanvasNavigationTests.cpp +++ b/tests/CanvasNavigationTests.cpp @@ -345,7 +345,10 @@ void CanvasNavigationTests::ctrlOrMetaWithTheMiddleButtonZooms() move(QPointF(60, 100), Qt::LeftButton | Qt::MiddleButton); QCOMPARE(session.viewport.zoom(), 2.0); QCOMPARE(session.viewport.pan, expected.pan); + // The magnifier outranks the Hand drag's closed hand. + QCOMPARE(canvas.cursor().pixmap().toImage(), plus); QTest::mouseRelease(&canvas, Qt::MiddleButton, Qt::ControlModifier, QPoint(60, 100)); + QCOMPARE(canvas.cursor().shape(), Qt::ClosedHandCursor); QTest::mouseRelease(&canvas, Qt::LeftButton, Qt::NoModifier, QPoint(60, 100)); }