Material: fix Qt6 build failure

QRegExp has been replaced with QRegularExpression and isn't part of the base of Qt6 any more
This commit is contained in:
Ladislav Michl
2024-01-14 10:43:39 +01:00
parent ce1a43ed2c
commit a85db2c1d6
3 changed files with 8 additions and 13 deletions

View File

@@ -21,11 +21,10 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <QMetaType>
#include <QRegularExpression>
#endif
#include <QMetaType>
#include <App/Application.h>
#include <Base/QtTools.h>
#include <Base/Quantity.h>
@@ -264,7 +263,7 @@ QString MaterialValue::getYAMLStringMultiLine() const
QString yaml;
yaml = QString::fromStdString(" |2");
auto list =
getValue().toString().split(QRegExp(QString::fromStdString("[\r\n]")), Qt::SkipEmptyParts);
getValue().toString().split(QRegularExpression(QString::fromStdString("[\r\n]")), Qt::SkipEmptyParts);
for (auto& it : list) {
yaml += QString::fromStdString("\n ") + it;
}