QmlDesigner: do not allow "-" in project names

This would create a not working import statement.

Pick-to: qds/4.5
Task-number: QDS-12272
Change-Id: I0b68d0e3967d69adc5ed361985e43a77f4b58d4e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2024-06-12 16:15:22 +02:00
parent acdcf0c459
commit 9d61101805

View File

@@ -3,7 +3,7 @@
"trShortTitle": "Location",
"typeId": "Project",
"data": {
"projectNameValidator": "^(?!(import))(?!(QtQml))(?!(QtQuick))(?:[A-Z][a-zA-Z0-9-_]*)$",
"trProjectNameValidatorUserMessage": "Project name must start with a capital letter. It cannot start with QtQml or QtQuick. Use only letters and digits separated by `_` or `-`"
"projectNameValidator": "^(?!(import))(?!(QtQml))(?!(QtQuick))(?:[A-Z][a-zA-Z0-9_]*)$",
"trProjectNameValidatorUserMessage": "Project name must start with a capital letter. It cannot start with QtQml or QtQuick. Use only letters and digits separated by `_`."
}
}