14.5: one View › Snap for all snapping

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 04:24:36 -04:00
1 parent dea7346a7c
commit 1289a6c790
14 files changed
+33 -43

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ void CropCanvasTests::snappingReachesEightViewPoints()
shown.drag(from, to);
QCOMPARE(shown.frame(), std::optional(QRectF(100, 50, 300, 120)));
// Snap off: the edges stay where the pointer puts them.
shown.session.setSnappingEnabled(false);
shown.session.setSnapEnabled(false);
shown.session.setCropRect(std::nullopt);
shown.drag(from, to);
QCOMPARE(shown.frame(), std::optional(QRectF(100, 50, 290, 120)));