sysutils/plasma-pass: prepare for Qt5-5.15

This commit is contained in:
Tobias C. Berner 2020-06-06 14:13:24 +00:00
parent d4af629ef1
commit 8f7411f4bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=538092

View file

@ -0,0 +1,16 @@
Obtained from: https://github.com/KDE/plasma-pass/commit/3fb633159ca4a1db166d5c54bbc025f71aba1652
--- plugin/passwordfiltermodel.cpp.orig 2020-06-06 09:37:44 UTC
+++ plugin/passwordfiltermodel.cpp
@@ -79,7 +79,11 @@ void PasswordFilterModel::delayedUpdateFilter()
Q_ASSERT(sender() == &mUpdateTimer);
mFilter = mUpdateTimer.property(newFilterProperty).toString();
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mParts = mFilter.splitRef(QLatin1Char('/'), QString::SkipEmptyParts);
+#else
+ mParts = mFilter.splitRef(QLatin1Char('/'), Qt::SkipEmptyParts);
+#endif
Q_EMIT passwordFilterChanged();
mSortingLookup.clear();
invalidate();