Fix support for Qt < 5.14

This commit is contained in:
Martchus 2020-06-11 21:33:06 +02:00
parent 61e82c6110
commit 5eb5fa463c
1 changed files with 7 additions and 1 deletions

View File

@ -140,7 +140,13 @@ FileSystemItem *FileSystemItem::findChild(const QString &name, const FileSystemI
FileSystemItem *FileSystemItem::makeChildAvailable(const QString &relativePath)
{
auto dirs = relativePath.split(QDir::separator(), Qt::SkipEmptyParts);
auto dirs = relativePath.split(QDir::separator(),
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QString::SkipEmptyParts
#else
Qt::SkipEmptyParts
#endif
);
if (dirs.isEmpty()) {
return this;
}