Skip to content

Commit

Permalink
Fix support for Qt < 5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jun 11, 2020
1 parent 61e82c6 commit 5eb5fa4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion renamingutility/filesystemitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5eb5fa4

Please sign in to comment.