mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
QDirIterator::nextFileInfo is Qt 6.3+
This commit is contained in:
parent
53cd3dffeb
commit
b28b491ec3
1 changed files with 7 additions and 1 deletions
|
|
@ -204,7 +204,13 @@ bool PictureLoader::hasCustomArt()
|
||||||
// Check if there is at least one non-directory file in the pics path, other
|
// Check if there is at least one non-directory file in the pics path, other
|
||||||
// than in the "downloadedPics" subdirectory.
|
// than in the "downloadedPics" subdirectory.
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
QFileInfo dir = it.nextFileInfo();
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
|
||||||
|
QFileInfo dir(it.nextFileInfo());
|
||||||
|
#else
|
||||||
|
// nextFileInfo() is only available in Qt 6.3+, for previous versions, we build
|
||||||
|
// the QFileInfo from a QString which requires more system calls.
|
||||||
|
QFileInfo dir(it.next());
|
||||||
|
#endif
|
||||||
|
|
||||||
if (it.fileName() == "downloadedPics")
|
if (it.fileName() == "downloadedPics")
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue