QmlDesigner: QRegularExpression::match is deprecated for QStringView

Change-Id: Ib7280ea0b0af9743942d70474564d303476238ce
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2025-05-26 15:28:00 +02:00
parent 765a9b0277
commit 314637a59f

View File

@@ -943,7 +943,8 @@ void ProjectStorageUpdater::updatePropertyEditorFilePath(
keyValue("directory id", directoryId)}; keyValue("directory id", directoryId)};
QRegularExpression regex{R"xo((.+)\/(\w+)(Specifics|Pane).qml)xo"}; 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; QString oldModuleName;
ModuleId moduleId; ModuleId moduleId;
if (match.hasMatch()) { if (match.hasMatch()) {