diff options
| author | Elvis Angelaccio <[email protected]> | 2020-10-14 23:26:05 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-10-15 01:22:00 +0200 |
| commit | a403df91b7a4f794f95604a28a56644d4c06ab58 (patch) | |
| tree | 0608fffc08e80dbfa2d1c7178727de07921bc56e /src/kitemviews/kfileitemmodel.cpp | |
| parent | 3bf2922e3337511fff974978b8b92f6e7bb53bec (diff) | |
Port to non-deprecated QString::split() variant
This requires Qt 5.14, which we now depend on.
Diffstat (limited to 'src/kitemviews/kfileitemmodel.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 28376c5d0..a3a2bef32 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -626,7 +626,7 @@ void KFileItemModel::expandParentDirectories(const QUrl &url) // first subdir can be empty, if m_dirLister->url().path() does not end with '/' // this happens if baseUrl is not root but a home directory, see FoldersPanel, // so using QString::SkipEmptyParts - const QStringList subDirs = url.path().mid(pos).split(QDir::separator(), QString::SkipEmptyParts); + const QStringList subDirs = url.path().mid(pos).split(QDir::separator(), Qt::SkipEmptyParts); for (int i = 0; i < subDirs.count() - 1; ++i) { QString path = urlToExpand.path(); if (!path.endsWith(QLatin1Char('/'))) { |
