qt5base-lts/tests/auto/corelib/io
Marc Mutz 25fff849e8 QDirIterator: add nextFileInfo()
Before this change, next() was the only way to advance the iterator,
whether the caller was ultimately interested in just the filePath()
(good) or not (bad luck, had to call .fileInfo()).

Add a new function, nextFileInfo(), with returns fileInfo() instead.
Incidentally, the returned object has already been constructed as part
of advance()ing the iterator, so the new function is faster than
next() even if the result is ignored, because we're not calculating a
QString result the caller may not be interested in.

Use the new function around the code.

Fix a couple of cases of next(); fileInfo().filePath() (just use
next()'s return value) as a drive-by.

[ChangeLog][QtCore][QDirIterator] Added nextFileInfo(), which is like
next(), but returns fileInfo() instead of filePath().

Change-Id: I601220575961169b44139fc55b9eae6c3197afb4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-07-28 15:16:42 +02:00
..
largefile Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
qabstractfileengine Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdataurl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdir QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qdiriterator QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qfile tst_QFile: fix GCC -Wignored-qualifiers 2021-07-09 17:59:01 +02:00
qfileinfo Implement QFileInfo::junctionTarget(), adjust auto-test 2021-06-05 01:16:06 +02:00
qfileselector QFileSelector: Preserve path to root directory 2021-07-21 19:37:16 +02:00
qfilesystementry CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qfilesystemmetadata Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfilesystemwatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qiodevice Run tst_QIODevice::skip() on random-access device 2021-07-03 21:47:19 +03:00
qipaddress Disable security warnings from MSVC in tests 2021-03-17 17:22:00 +01:00
qlockfile Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qloggingcategory Remove the qmake project files 2021-01-07 15:32:28 +01:00
qloggingregistry QLoggingSettingsParser: port setContent() to QStringView 2021-06-16 13:22:18 +02:00
qnodebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocess tst_QProcess: increase wait time and remove ill-advised QCOMPARE 2021-05-03 20:43:01 +00:00
qprocess-noapplication Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocessenvironment Remove the qmake project files 2021-01-07 15:32:28 +01:00
qresourceengine QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qsavefile Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsettings macOS: Don't mangle QByteArray settings with @ prefix by decoding as UTF-8 2021-07-13 00:59:49 +02:00
qstandardpaths Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstorageinfo Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtemporarydir Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qtemporaryfile QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qurl Fix QUrl::fromLocalFile with long path prefix 2021-05-19 21:38:38 +02:00
qurlinternal Remove the qmake project files 2021-01-07 15:32:28 +01:00
qurlquery Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt tst_qprocess: enable test again for cross-compilations 2021-02-16 07:26:19 +02:00