qt6-bb10/tests/auto/corelib
Volker Hilsheimer de23caa4f6 JNI: don't declare namespaces nested into QtJniTypes as inline
Sadly, inline namespaces are resulting in ambiguities. With two
declarations

    QtJniTypes::android::io::File

and

    QtJniTypes::org::qtproject::qt::android::QtWindow

referring to QtJniTypes::android already is ambiguous if `org`,
`qtproject`, and `qt` namespaces are all inline. This breaks the
idea behind Q_DECLARE_JNI_CLASS as a variadic macro that generates types
that we can transparently use as QtJniTypes.

So remove the inline keyword from the namespace declarations. The macro
might still be the way to go, but user code will to either fully qualify
the types, or use `using namespace QtJniTypes::java::lang` to use e.g.
the `String` type without ambiguities.

Types declared with the two-argument overload continue to live
directly in the QtJniTypes namespace anyway.

As a drive-by, break the excessively long lines.

Change-Id: Ie9303e6c9117fb96b3cff31c7df4df92237b5520
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit d1b89671de70ac9ffca52337058e976d86a367c1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-23 03:39:05 +00:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global tst_QGlobal: fix -Wmaybe-uninitialized 2024-06-18 08:09:17 +00:00
io Handle VxWorks in QFileSelector 2024-06-19 14:02:58 +00:00
ipc tests: skip tst_QSharedMemory::useTooMuchMemory() on Linux arm64 2024-06-13 20:35:08 +00:00
itemmodels tst_QAbstractProxyModel: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:58 +00:00
kernel JNI: don't declare namespaces nested into QtJniTypes as inline 2024-06-23 03:39:05 +00:00
mimetypes QMimeType: use modernize comparisons 2024-04-30 17:46:34 +02:00
platform tst_qcomobject: Reduce size of Qt-namespace 2024-05-13 15:25:36 +02:00
plugin tst_QPlugin: Be specific when looking for plugins 2024-06-18 09:28:46 +00:00
serialization tst_QCborValue: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:45 +00:00
text tst_QRegularExpression: port to QTEST_THROW_ON_FAIL 2024-06-19 23:32:05 +00:00
thread Skip tst_QFuture::whenAllDifferentTypes and whenAnyDifferentTypes on VxWorks 2024-06-20 19:30:41 +00:00
time Update CLDR Windows timezone data to v44.1 2024-06-02 15:25:00 +02:00
tools tst_QSharedPointer: check QWeakPointer vs. virtual bases 2024-06-20 19:05:31 +00:00
CMakeLists.txt