summaryrefslogtreecommitdiffstats
path: root/tests/postbuild
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-02-25 15:27:05 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-02-27 10:03:30 +0100
commitdc43cb91261083f85d8fdea8068bf91fa5621351 (patch)
tree5f42d683a0aeb5493d031d5a89410708039d6907 /tests/postbuild
parentc591f7431cb569a20b77a26dfda1d3216ad24385 (diff)
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: I17a1c8f10318770e2fcbac3a24b21a63eb448db3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/postbuild')
-rw-r--r--tests/postbuild/global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/postbuild/global.h b/tests/postbuild/global.h
index 89c14ba6..f05a4478 100644
--- a/tests/postbuild/global.h
+++ b/tests/postbuild/global.h
@@ -222,7 +222,11 @@ QStringList qt_tests_shared_global_get_export_modules(const QString &makeFile)
int index = line.indexOf('=');
if (index > 13 && line.startsWith(QLatin1String("EXPORT_MODULES"))) {
QString relatives = line.mid(index + 1);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+ return relatives.split(QChar(' '), Qt::SkipEmptyParts);
+#else
return relatives.split(QChar(' '), QString::SkipEmptyParts);
+#endif
}
}
return QStringList();