diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2021-09-01 14:10:43 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2021-09-03 08:31:26 +0000 |
commit | d7994871b686c990ef0fe2d2d7057e093528f2a7 (patch) | |
tree | da435b9748e59233870da931f15f85e804617818 /src/plugins/qmljseditor | |
parent | 5e464155d9ebee2f339c4d16fbed3cc5d9b5c0d5 (diff) |
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>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp index d1bd31d8661..6233c79a5d2 100644 --- a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp +++ b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp @@ -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", |