qt5base-lts/tests/auto/corelib
Marc Mutz e74e27e67e QObject: give some TLC to dumpRecursive()
In no particular order:

- use the variable field width feature of QString::asprintf() to
  generate the indentation implicitly, instead of fill()ing a
  QByteArray with the desired number of spaces

- just default-construct 'flags', don't assign an empty string

- use qUtf16Printable() to avoid funneling UTF-16 data through 8-bit
  encodings

- use a C++11 ranged for instead of a counted loop

- remove a pointless isEmpty() guard (the loop won't execute when the
  children().isEmpty())

- avoid copying object->children() (returns by cref, so it's also ok
  to stuff it directly into the ranged for loop).

Add a test.

Pick-to: 6.3
Change-Id: Ie7314713cb48de7e890cdee0760c0361dd24fd18
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-03-16 02:26:56 +00:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Restore C++20-deprecated mixed-enum bitwise operators 2022-03-15 11:36:09 +01:00
io qDecodeDataUrl(): treat ";base64" marker as case-insensitive 2022-03-11 19:15:49 +00:00
itemmodels Fix test to pass with QT_FORCE_ASSERTS 2022-02-18 18:55:38 +01:00
kernel QObject: give some TLC to dumpRecursive() 2022-03-16 02:26:56 +00:00
mimetypes Remove unused .qrc files 2022-01-17 23:17:01 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Fix test when accessing patched plugin too fast 2022-02-25 14:52:34 +02:00
serialization Revert "Blacklist: test cases blacklisted in tst_QXmlStream:" 2022-03-15 07:32:32 +00:00
text QStringTokenizer::toContainer(): allow more types of target containers 2022-03-15 21:05:31 +01:00
thread QMutexLocker: add isLocked() 2022-03-15 03:32:14 +01:00
time Add tests for an assertion seen on Windows 2022-03-04 23:26:13 +01:00
tools tst_qflatmap: fix -Wunused-local-typedef (Clang) 2022-03-11 19:15:49 +00:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00