QmlJS: Prepend "My" to default component name

Task-number: QDS-3313
Change-Id: I1bd9944a63333d38c9fd77801ef63d7d55787878
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Thomas Hartmann
2021-09-01 14:10:43 +02:00
parent 5e464155d9
commit d7994871b6

View File

@@ -73,6 +73,7 @@ public:
if (!m_idName.isEmpty()) {
m_componentName = m_idName;
m_componentName[0] = m_componentName.at(0).toUpper();
m_componentName.prepend("My");
}
setDescription(QCoreApplication::translate("QmlJSEditor::ComponentFromObjectDef",