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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user