forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
de7a7b6ac8
commit
259759b5c9
@@ -131,7 +131,7 @@ Item {
|
||||
checkable: true
|
||||
onTriggered: {
|
||||
if (checked)
|
||||
backendValue.exportPopertyAsAlias()
|
||||
backendValue.exportPropertyAsAlias()
|
||||
else
|
||||
backendValue.removeAliasExport()
|
||||
}
|
||||
|
@@ -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));
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
|
@@ -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())
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user