forked from qt-creator/qt-creator
QmlDesigner: QRegularExpression::match is deprecated for QStringView
Change-Id: Ib7280ea0b0af9743942d70474564d303476238ce Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -943,7 +943,8 @@ void ProjectStorageUpdater::updatePropertyEditorFilePath(
|
||||
keyValue("directory id", directoryId)};
|
||||
|
||||
QRegularExpression regex{R"xo((.+)\/(\w+)(Specifics|Pane).qml)xo"};
|
||||
auto match = regex.match(QStringView{path}.mid(pathOffset));
|
||||
auto typePath = QStringView{path}.mid(pathOffset);
|
||||
auto match = regex.matchView(typePath);
|
||||
QString oldModuleName;
|
||||
ModuleId moduleId;
|
||||
if (match.hasMatch()) {
|
||||
|
Reference in New Issue
Block a user