From 82c77ea250d83fa4bcc0628669ee58c12b8b5aca Mon Sep 17 00:00:00 2001 From: ispyisail Date: Thu, 8 Oct 2026 12:49:29 +1300 Subject: [PATCH] Expect the English wording in the dark-picture checkbox test The interface text is now English at the source, so the untranslated checkbox and tooltip read in English. Co-Authored-By: Claude Opus 5.5 --- tests/qttest/image_dark_integration_probe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qttest/image_dark_integration_probe.cpp b/tests/qttest/image_dark_integration_probe.cpp index 23d86f61c..b62ccf144 100644 --- a/tests/qttest/image_dark_integration_probe.cpp +++ b/tests/qttest/image_dark_integration_probe.cpp @@ -66,8 +66,8 @@ int main(int argc, char **argv) const QByteArray pristine=png(image->pixmap()); const auto transform=image->transform(); const auto bounds=image->boundingRect(); ImagePropertiesWidget widget(image); auto *box=widget.findChild("m_adapt_to_dark_theme_cb"); check(box && !box->isChecked(),"unchecked properties default"); - check(box->text()==QString::fromUtf8("Adapter l’image au thème sombre"),"checkbox wording"); - check(box->toolTip()==QString::fromUtf8("Adapte les couleurs à l’affichage sombre uniquement. L’image originale, les exports et les impressions restent inchangés."),"tooltip wording"); + check(box->text()==QStringLiteral("Adapt the picture to the dark theme"),"checkbox wording"); + check(box->toolTip()==QStringLiteral("Adapts the colors for the dark display only. The original picture, exports and printouts stay unchanged."),"tooltip wording"); box->setChecked(true); check(image->adaptToDarkTheme(),"preview"); widget.reset(); check(!image->adaptToDarkTheme(),"reset cancels preview"); diagram->undoStack().clear(); box->setChecked(true); widget.apply(); check(image->adaptToDarkTheme(),"apply"); diagram->undoStack().undo(); check(!image->adaptToDarkTheme()&&!box->isChecked(),"undo updates checkbox");