From 259759b5c9fb7ca92bb08d6663aff432a2caf781 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Tue, 17 May 2022 15:14:05 +0200 Subject: [PATCH] QmlDesigner: Fix typo Change-Id: If6860fe3094124dcac381f72ae88722759167354 Reviewed-by: Qt CI Bot Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/ExtendedFunctionLogic.qml | 2 +- .../components/propertyeditor/propertyeditorqmlbackend.cpp | 2 +- .../components/propertyeditor/propertyeditorvalue.cpp | 4 ++-- .../components/propertyeditor/propertyeditorvalue.h | 4 ++-- .../components/propertyeditor/propertyeditorview.cpp | 6 +++--- .../components/propertyeditor/propertyeditorview.h | 2 +- 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 bdefc13a977..601f9087f0d 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 135bbca9dfa..c73290bf76a 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 c37549e074a..c447d6c4a96 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 52de9cbb707..8e29d0ae0ef 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 d0f8dd70435..7f190b62888 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 c6dd85d98f8..06e86fd57cd 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;