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>
This commit is contained in:
Henning Gruendl
2022-05-17 15:14:05 +02:00
committed by Henning Gründl
parent de7a7b6ac8
commit 259759b5c9
6 changed files with 10 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ Item {
checkable: true checkable: true
onTriggered: { onTriggered: {
if (checked) if (checked)
backendValue.exportPopertyAsAlias() backendValue.exportPropertyAsAlias()
else else
backendValue.removeAliasExport() backendValue.removeAliasExport()
} }

View File

@@ -294,7 +294,7 @@ void PropertyEditorQmlBackend::createPropertyEditorValue(const QmlObjectNode &qm
valueObject = new PropertyEditorValue(&backendValuesPropertyMap()); valueObject = new PropertyEditorValue(&backendValuesPropertyMap());
QObject::connect(valueObject, &PropertyEditorValue::valueChanged, &backendValuesPropertyMap(), &DesignerPropertyMap::valueChanged); QObject::connect(valueObject, &PropertyEditorValue::valueChanged, &backendValuesPropertyMap(), &DesignerPropertyMap::valueChanged);
QObject::connect(valueObject, &PropertyEditorValue::expressionChanged, propertyEditor, &PropertyEditorView::changeExpression); 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); QObject::connect(valueObject, &PropertyEditorValue::removeAliasExportRequested, propertyEditor, &PropertyEditorView::removeAliasExport);
backendValuesPropertyMap().insert(QString::fromUtf8(propertyName), QVariant::fromValue(valueObject)); backendValuesPropertyMap().insert(QString::fromUtf8(propertyName), QVariant::fromValue(valueObject));
} }

View File

@@ -367,9 +367,9 @@ void PropertyEditorValue::setEnumeration(const QString &scope, const QString &na
setValueWithEmit(QVariant::fromValue(newEnumeration)); setValueWithEmit(QVariant::fromValue(newEnumeration));
} }
void PropertyEditorValue::exportPopertyAsAlias() void PropertyEditorValue::exportPropertyAsAlias()
{ {
emit exportPopertyAsAliasRequested(nameAsQString()); emit exportPropertyAsAliasRequested(nameAsQString());
} }
bool PropertyEditorValue::hasPropertyAlias() const bool PropertyEditorValue::hasPropertyAlias() const

View File

@@ -130,7 +130,7 @@ public:
static void registerDeclarativeTypes(); static void registerDeclarativeTypes();
Q_INVOKABLE void exportPopertyAsAlias(); Q_INVOKABLE void exportPropertyAsAlias();
Q_INVOKABLE bool hasPropertyAlias() const; Q_INVOKABLE bool hasPropertyAlias() const;
Q_INVOKABLE bool isAttachedProperty() const; Q_INVOKABLE bool isAttachedProperty() const;
Q_INVOKABLE void removeAliasExport(); Q_INVOKABLE void removeAliasExport();
@@ -153,7 +153,7 @@ signals:
void valueChangedQml(); void valueChangedQml();
void expressionChanged(const QString &name); void expressionChanged(const QString &name);
void exportPopertyAsAliasRequested(const QString &name); void exportPropertyAsAliasRequested(const QString &name);
void removeAliasExportRequested(const QString &name); void removeAliasExportRequested(const QString &name);
void modelStateChanged(); void modelStateChanged();

View File

@@ -326,7 +326,7 @@ void PropertyEditorView::changeExpression(const QString &propertyName)
}); /* end of transaction */ }); /* end of transaction */
} }
void PropertyEditorView::exportPopertyAsAlias(const QString &name) void PropertyEditorView::exportPropertyAsAlias(const QString &name)
{ {
if (name.isNull()) if (name.isNull())
return; return;
@@ -337,7 +337,7 @@ void PropertyEditorView::exportPopertyAsAlias(const QString &name)
if (noValidSelection()) if (noValidSelection())
return; return;
executeInTransaction("PropertyEditorView::exportPopertyAsAlias", [this, name](){ executeInTransaction("PropertyEditorView::exportPropertyAsAlias", [this, name](){
const QString id = m_selectedNode.validId(); const QString id = m_selectedNode.validId();
QString upperCasePropertyName = name; QString upperCasePropertyName = name;
upperCasePropertyName.replace(0, 1, upperCasePropertyName.at(0).toUpper()); upperCasePropertyName.replace(0, 1, upperCasePropertyName.at(0).toUpper());
@@ -365,7 +365,7 @@ void PropertyEditorView::removeAliasExport(const QString &name)
if (noValidSelection()) if (noValidSelection())
return; return;
executeInTransaction("PropertyEditorView::exportPopertyAsAlias", [this, name](){ executeInTransaction("PropertyEditorView::exportPropertyAsAlias", [this, name](){
const QString id = m_selectedNode.validId(); const QString id = m_selectedNode.validId();
for (const BindingProperty &property : rootModelNode().bindingProperties()) for (const BindingProperty &property : rootModelNode().bindingProperties())

View File

@@ -89,7 +89,7 @@ public:
void changeValue(const QString &name); void changeValue(const QString &name);
void changeExpression(const QString &name); void changeExpression(const QString &name);
void exportPopertyAsAlias(const QString &name); void exportPropertyAsAlias(const QString &name);
void removeAliasExport(const QString &name); void removeAliasExport(const QString &name);
bool locked() const; bool locked() const;