12.3b: rulers, the grid and guides on the canvas, guide drags (Compositor 1.1.7)

This commit is contained in:
雷电芽衣 committed 2026-09-26 20:55:55 -04:00
1 parent 338451fc35
commit 78bfa2445d
19 files changed
+718 -10

No files matched your search

+3 -2
View File
@@ -86,7 +86,7 @@ void ContentViewTests::testCreateCanvasAndNavigation()
QCOMPARE(find<QLabel>(view, "zoomStatus").text(), QString("125%"));
// Layouts settle in the event loop; then the picture holds.
QCoreApplication::processEvents();
QVERIFY(view.grab().save(QStringLiteral("EditorFoundation.png")));
QVERIFY(view.grab().save(QCoreApplication::applicationDirPath() + QStringLiteral("/EditorFoundation.png")));
// A project that is cleared brings a fresh welcome back.
auto *copied = new QMimeData;
QImage small(400, 300, QImage::Format_RGBA8888);
@@ -354,7 +354,8 @@ void ContentViewTests::theCanvasSitsUnderTheWelcomeAndTakesTheKeysWithADocument(
QVERIFY(canvas.isVisible());
// The rail and the Layers panel take theirs; 480 stays.
QVERIFY(canvas.width() >= 480 && canvas.height() >= 300);
QCOMPARE(canvas.parentWidget()->x() + canvas.parentWidget()->width(), view.layersPanel().x() - 8);
// Hidden rulers leave the canvas touching the resize grip.
QCOMPARE(canvas.mapTo(&view, QPoint(canvas.width(), 0)).x(), view.layersPanel().x() - 8);
QCOMPARE(canvas.geometry(), canvas.parentWidget()->rect());
QTRY_VERIFY(find<QLineEdit>(view, "widthInput").hasFocus());
session.createNewProject(300, 200);