summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qlocale
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-09-01 13:39:22 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-11-10 18:16:24 +0200
commit7db0eeae3411ad27eab47db57f7121567bf0c839 (patch)
treee741745a19b4a3408951f5b78bf4cc51c46d8406 /tests/auto/corelib/text/qlocale
parent62b7130423047fc6eb1d51301f2f065a76e9e4a8 (diff)
Clean up exports from qlocale_p.h
Explain why QSystemLocale needs to be an export. Unexport QLocaleId::fromName() now that qttools no longer uses it. QLocalePrivate was only Q_CORE_EXPORT for the sake of one use in tst_QLocale, that can now be replaced by a call to a public QLocale method. Change-Id: I1efe8ee03488acfc6e1c36661f6e956a86e191c3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qlocale')
-rw-r--r--tests/auto/corelib/text/qlocale/tst_qlocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
index ae42046eac..c5ba003363 100644
--- a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
+++ b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
@@ -2974,7 +2974,7 @@ void tst_QLocale::textDirection_data()
default:
break;
}
- const QLatin1String testName = QLocalePrivate::languageToCode(QLocale::Language(language));
+ const QString testName = QLocale::languageToCode(QLocale::Language(language));
QTest::newRow(qPrintable(testName)) << language << int(QLocale::AnyScript) << rightToLeft;
}
QTest::newRow("pa_Arab") << int(QLocale::Punjabi) << int(QLocale::ArabicScript) << true;