qt5base-lts/src/tools
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
..
androiddeployqt QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
androidtestrunner Revert "Android: fix androidtestrunner passing when output file doesn't exist" 2021-07-01 13:29:43 +00:00
bootstrap Enable QT_TYPESAFE_FLAGS for bootstrap and QtCore 2021-06-23 12:49:19 +02:00
cmake_automoc_parser Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
moc QDuplicateTracker: accept the number of elements to reserve as a ctor argument 2021-07-14 08:57:39 +02:00
qdbuscpp2xml Bump copyright year to 2021 2021-01-25 20:00:44 +01:00
qdbusxml2cpp Bump copyright year to 2021 2021-01-25 20:00:44 +01:00
qlalr Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
qtpaths Add qtpaths6 alias 2021-07-16 07:43:02 +00:00
qvkgen Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
rcc Deprecate qGlobalQHashSeed and qSetGlobalQHashSeed in Qt 6.6 2021-05-23 12:08:43 -07:00
shared Let androiddeployqt write a dependency file 2021-07-08 17:30:20 +02:00
tracegen Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
uic uic: No longer generate star imports in Python 2021-06-01 16:29:15 +02:00
CMakeLists.txt Fix build without features.systemsemaphore 2021-04-14 16:24:33 +09:00