From e965d8a3ab5f97479776efe05e8f8b86eba58f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Lefebvre?= Date: Tue, 26 Nov 2024 11:49:41 +0100 Subject: [PATCH] Remove QString::fromLatin1 as not required in tst_qprogressbar.cpp Remove QString::fromLatin1 in tst_qprogressbar::formatedText_data() as not required. Make the code more tidy and easier to read. Change-Id: I2437cfa1430270b6f045a5dfddc0114d5127d305 Reviewed-by: Magdalena Stojek Reviewed-by: Axel Spoerl --- .../widgets/widgets/qprogressbar/tst_qprogressbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/widgets/widgets/qprogressbar/tst_qprogressbar.cpp b/tests/auto/widgets/widgets/qprogressbar/tst_qprogressbar.cpp index 4a90ed6667f..8bf7e18d4fd 100644 --- a/tests/auto/widgets/widgets/qprogressbar/tst_qprogressbar.cpp +++ b/tests/auto/widgets/widgets/qprogressbar/tst_qprogressbar.cpp @@ -282,10 +282,10 @@ void tst_QProgressBar::formatedText_data() QTest::addColumn("format"); QTest::addColumn("text"); - QTest::newRow("1") << -100 << 100 << 0 << QString::fromLatin1(" %p - %v - %m ") << QString::fromLatin1(" 50 - 0 - 200 "); - QTest::newRow("2") << -100 << 0 << -25 << QString::fromLatin1(" %p - %v - %m ") << QString::fromLatin1(" 75 - -25 - 100 "); - QTest::newRow("3") << 10 << 10 << 10 << QString::fromLatin1(" %p - %v - %m ") << QString::fromLatin1(" 100 - 10 - 0 "); - QTest::newRow("task152227") << INT_MIN << INT_MAX << 42 << QString::fromLatin1(" %p - %v - %m ") << QString::fromLatin1(" 50 - 42 - 4294967295 "); + QTest::newRow("1") << -100 << 100 << 0 << " %p - %v - %m " << " 50 - 0 - 200 "; + QTest::newRow("2") << -100 << 0 << -25 << " %p - %v - %m " << " 75 - -25 - 100 "; + QTest::newRow("3") << 10 << 10 << 10 << " %p - %v - %m " << " 100 - 10 - 0 "; + QTest::newRow("task152227") << INT_MIN << INT_MAX << 42 << " %p - %v - %m " << " 50 - 42 - 4294967295 "; } void tst_QProgressBar::formatedText()