Use Qt::SplitBehavior in preference to QString::SplitBehavior
The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: I3ed1abd00bf54da654c9ccade427f5756b99b595 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
814682bb9a
commit
9f093c8e49
|
@ -623,7 +623,7 @@ static QStringList extractExtensions(const QString &filter)
|
|||
const int to = filter.lastIndexOf(QLatin1Char(')')) - 1;
|
||||
if (from >= 0 && from < to) {
|
||||
const QStringRef ref = filter.midRef(from + 1, to - from);
|
||||
const QVector<QStringRef> exts = ref.split(QLatin1Char(' '), QString::SkipEmptyParts);
|
||||
const QVector<QStringRef> exts = ref.split(QLatin1Char(' '), Qt::SkipEmptyParts);
|
||||
for (const QStringRef &ref : exts)
|
||||
extensions += extractExtension(ref.toString());
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ static QStringList envPathList(const QByteArray &var)
|
|||
QStringList paths;
|
||||
if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty(var))) {
|
||||
const QByteArray value = qgetenv(var);
|
||||
paths += QString::fromLocal8Bit(value).split(QDir::listSeparator(), QString::SkipEmptyParts);
|
||||
paths += QString::fromLocal8Bit(value).split(QDir::listSeparator(), Qt::SkipEmptyParts);
|
||||
}
|
||||
return paths;
|
||||
}
|
||||
|
@ -347,7 +347,7 @@ QStringList QQuickStylePrivate::stylePaths(bool resolve)
|
|||
} else {
|
||||
// Fast/simpler path for systems where something other than : is used as
|
||||
// the list separator (such as ';').
|
||||
const QStringList customPaths = value.split(listSeparator, QString::SkipEmptyParts);
|
||||
const QStringList customPaths = value.split(listSeparator, Qt::SkipEmptyParts);
|
||||
paths += customPaths;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -311,7 +311,7 @@ void tst_customization::creation()
|
|||
QVERIFY2(qt_createdQObjects()->removeOne(controlName), qPrintable(controlName + " was not created as expected"));
|
||||
|
||||
for (QString delegate : qAsConst(delegates)) {
|
||||
QStringList properties = delegate.split(".", QString::SkipEmptyParts);
|
||||
QStringList properties = delegate.split(".", Qt::SkipEmptyParts);
|
||||
|
||||
// <control>-<delegate>-<style>(-<override>)
|
||||
delegate.append("-" + style);
|
||||
|
@ -412,7 +412,7 @@ void tst_customization::override()
|
|||
QVERIFY2(qt_createdQObjects()->removeOne(controlName), qPrintable(controlName + " was not created as expected"));
|
||||
|
||||
for (QString delegate : qAsConst(delegates)) {
|
||||
QStringList properties = delegate.split(".", QString::SkipEmptyParts);
|
||||
QStringList properties = delegate.split(".", Qt::SkipEmptyParts);
|
||||
|
||||
// <control>-<delegate>-<style>(-override)
|
||||
delegate.append("-" + style);
|
||||
|
|
Loading…
Reference in New Issue