forked from qt-creator/qt-creator
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:
@@ -73,6 +73,7 @@ public:
|
|||||||
if (!m_idName.isEmpty()) {
|
if (!m_idName.isEmpty()) {
|
||||||
m_componentName = m_idName;
|
m_componentName = m_idName;
|
||||||
m_componentName[0] = m_componentName.at(0).toUpper();
|
m_componentName[0] = m_componentName.at(0).toUpper();
|
||||||
|
m_componentName.prepend("My");
|
||||||
}
|
}
|
||||||
|
|
||||||
setDescription(QCoreApplication::translate("QmlJSEditor::ComponentFromObjectDef",
|
setDescription(QCoreApplication::translate("QmlJSEditor::ComponentFromObjectDef",
|
||||||
|
Reference in New Issue
Block a user