mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
make use of QLocale::matchingLocales() in QLocale::negativeNumbers()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
7cd9cb35b1
commit
0c2e8bb6e8
1 changed files with 6 additions and 7 deletions
|
@ -39,7 +39,6 @@
|
|||
#include <qnumeric.h>
|
||||
#include <qprocess.h>
|
||||
#include <qlocale_p.h>
|
||||
#include <qlocale_data_p.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
@ -1181,13 +1180,13 @@ void tst_QLocale::testNames_data()
|
|||
QTest::addColumn<int>("language");
|
||||
QTest::addColumn<int>("country");
|
||||
|
||||
for (int i = 0; i < localeTblSize; ++i) {
|
||||
const QLocalePrivate &item = localeTbl[i];
|
||||
|
||||
int i = 0;
|
||||
foreach (const QLocale &locale, QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::AnyCountry)) {
|
||||
const QString testName = QString::fromLatin1("data_%1 (%2/%3)").arg(i)
|
||||
.arg(QLocale::languageToString(item.m_language))
|
||||
.arg(QLocale::countryToString(item.m_country));
|
||||
QTest::newRow(testName.toLatin1().constData()) << (int)item.m_language << (int)item.m_country;
|
||||
.arg(QLocale::languageToString(locale.language()))
|
||||
.arg(QLocale::countryToString(locale.country()));
|
||||
QTest::newRow(testName.toLatin1().constData()) << (int)locale.language() << (int)locale.country();
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue