diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2022-05-17 15:14:05 +0200 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2022-05-18 07:37:50 +0000 |
commit | 259759b5c9fb7ca92bb08d6663aff432a2caf781 (patch) | |
tree | 89dd02f2866d423bcc3091a2706d8e244dcceaa0 | |
parent | de7a7b6ac882bf55fc699563aaadbc7c7b3b2061 (diff) | |
download | qt-creator-259759b5c9fb7ca92bb08d6663aff432a2caf781.tar.gz |
QmlDesigner: Fix typo
Change-Id: If6860fe3094124dcac381f72ae88722759167354
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
6 files changed, 10 insertions, 10 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionLogic.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionLogic.qml index bdefc13a97..601f9087f0 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionLogic.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionLogic.qml @@ -131,7 +131,7 @@ Item { checkable: true onTriggered: { if (checked) - backendValue.exportPopertyAsAlias() + backendValue.exportPropertyAsAlias() else backendValue.removeAliasExport() } diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp index 135bbca9df..c73290bf76 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp @@ -294,7 +294,7 @@ void PropertyEditorQmlBackend::createPropertyEditorValue(const QmlObjectNode &qm valueObject = new PropertyEditorValue(&backendValuesPropertyMap()); QObject::connect(valueObject, &PropertyEditorValue::valueChanged, &backendValuesPropertyMap(), &DesignerPropertyMap::valueChanged); QObject::connect(valueObject, &PropertyEditorValue::expressionChanged, propertyEditor, &PropertyEditorView::changeExpression); - QObject::connect(valueObject, &PropertyEditorValue::exportPopertyAsAliasRequested, propertyEditor, &PropertyEditorView::exportPopertyAsAlias); + QObject::connect(valueObject, &PropertyEditorValue::exportPropertyAsAliasRequested, propertyEditor, &PropertyEditorView::exportPropertyAsAlias); QObject::connect(valueObject, &PropertyEditorValue::removeAliasExportRequested, propertyEditor, &PropertyEditorView::removeAliasExport); backendValuesPropertyMap().insert(QString::fromUtf8(propertyName), QVariant::fromValue(valueObject)); } diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp index c37549e074..c447d6c4a9 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp @@ -367,9 +367,9 @@ void PropertyEditorValue::setEnumeration(const QString &scope, const QString &na setValueWithEmit(QVariant::fromValue(newEnumeration)); } -void PropertyEditorValue::exportPopertyAsAlias() +void PropertyEditorValue::exportPropertyAsAlias() { - emit exportPopertyAsAliasRequested(nameAsQString()); + emit exportPropertyAsAliasRequested(nameAsQString()); } bool PropertyEditorValue::hasPropertyAlias() const diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.h index 52de9cbb70..8e29d0ae0e 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.h +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.h @@ -130,7 +130,7 @@ public: static void registerDeclarativeTypes(); - Q_INVOKABLE void exportPopertyAsAlias(); + Q_INVOKABLE void exportPropertyAsAlias(); Q_INVOKABLE bool hasPropertyAlias() const; Q_INVOKABLE bool isAttachedProperty() const; Q_INVOKABLE void removeAliasExport(); @@ -153,7 +153,7 @@ signals: void valueChangedQml(); void expressionChanged(const QString &name); - void exportPopertyAsAliasRequested(const QString &name); + void exportPropertyAsAliasRequested(const QString &name); void removeAliasExportRequested(const QString &name); void modelStateChanged(); diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index d0f8dd7043..7f190b6288 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -326,7 +326,7 @@ void PropertyEditorView::changeExpression(const QString &propertyName) }); /* end of transaction */ } -void PropertyEditorView::exportPopertyAsAlias(const QString &name) +void PropertyEditorView::exportPropertyAsAlias(const QString &name) { if (name.isNull()) return; @@ -337,7 +337,7 @@ void PropertyEditorView::exportPopertyAsAlias(const QString &name) if (noValidSelection()) return; - executeInTransaction("PropertyEditorView::exportPopertyAsAlias", [this, name](){ + executeInTransaction("PropertyEditorView::exportPropertyAsAlias", [this, name](){ const QString id = m_selectedNode.validId(); QString upperCasePropertyName = name; upperCasePropertyName.replace(0, 1, upperCasePropertyName.at(0).toUpper()); @@ -365,7 +365,7 @@ void PropertyEditorView::removeAliasExport(const QString &name) if (noValidSelection()) return; - executeInTransaction("PropertyEditorView::exportPopertyAsAlias", [this, name](){ + executeInTransaction("PropertyEditorView::exportPropertyAsAlias", [this, name](){ const QString id = m_selectedNode.validId(); for (const BindingProperty &property : rootModelNode().bindingProperties()) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.h index c6dd85d98f..06e86fd57c 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.h +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.h @@ -89,7 +89,7 @@ public: void changeValue(const QString &name); void changeExpression(const QString &name); - void exportPopertyAsAlias(const QString &name); + void exportPropertyAsAlias(const QString &name); void removeAliasExport(const QString &name); bool locked() const; |