Replace QString::SkipEmptyParts with Qt::SkipEmptyParts on Qt 5.14.0 or higher
This commit is contained in:
@@ -156,7 +156,12 @@ QStandardItem *PlaylistListModel::FolderByPath(const QString &path) {
|
||||
// inefficient but maintaining a path -> item map is difficult.
|
||||
QStandardItem *parent = invisibleRootItem();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
const QStringList parts = path.split('/', Qt::SkipEmptyParts);
|
||||
#else
|
||||
const QStringList parts = path.split('/', QString::SkipEmptyParts);
|
||||
#endif
|
||||
|
||||
for (const QString &part : parts) {
|
||||
QStandardItem *matching_child = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user