14.18: Export As for PNG, JPEG and PDF, sized, over a checkerboard

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 09:10:51 -04:00
1 parent e6b7f043bb
commit 9be01073df
26 files changed
+1352 -688

No files matched your search

+2 -2
View File
@@ -88,10 +88,10 @@ void AcceptanceProjectTests::cropSizesAndExports()
QCOMPARE(QImage(app.path("scene.png")).size(), QSize(600, 300));
desk.replies = {app.path("scene.jpg")};
done = false;
controller.exportJPEG([&done] { done = true; });
controller.exportAs(ExportFormat::jpeg, [&done] { done = true; });
QTRY_VERIFY(app.window.findChild<QDialog *>());
app.shot(QStringLiteral("11-export-jpeg"));
QPushButton *exported = app.window.findChild<QDialog *>()->findChild<QPushButton *>(QStringLiteral("jpegExport"));
QPushButton *exported = app.window.findChild<QDialog *>()->findChild<QPushButton *>(QStringLiteral("exportExport"));
QVERIFY(exported);
QTRY_VERIFY_WITH_TIMEOUT(exported->isEnabled(), 30000);
exported->click();