Commit d995e103 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 926897e2
......@@ -696,7 +696,11 @@ QString Util::parseBodyStyle(const QString &style)
const int indexEnd = style.indexOf(QLatin1Char('"'), indexStyle + 7);
if (indexEnd != -1) {
const QStringRef styleStr = style.midRef(indexStyle + 7, indexEnd - (indexStyle + 7));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const auto lstStyle = styleStr.split(QLatin1Char(';'), QString::SkipEmptyParts);
#else
const auto lstStyle = styleStr.split(QLatin1Char(';'), Qt::SkipEmptyParts);
#endif
QStringList lst;
for (const auto &style : lstStyle) {
if (style.trimmed().contains(QLatin1String("white-space"))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment