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 <magdalena.stojek@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
1c0406ee17
commit
e965d8a3ab
@ -282,10 +282,10 @@ void tst_QProgressBar::formatedText_data()
|
||||
QTest::addColumn<QString>("format");
|
||||
QTest::addColumn<QString>("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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user