diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-10-25 12:51:11 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-10-25 11:40:58 +0000 |
commit | 8b2d676ae87699a0ed78d79051e5dccd30f1ed85 (patch) | |
tree | 2a4571d3c9c2857730351aa0d67cd97f645caf17 /src/plugins/designer | |
parent | ea1a745813a3f4e492ce01c3253a7d990fde724a (diff) |
Designer: Ignore layout name changes from property editor
As it turns out, changes to "objectName" and "layoutName" both result in
the objectNameChanged() signal getting emitted. We must handle these the
same way.
Fixes: QTCREATORBUG-29644
Change-Id: I41ecc4867f3df8eedf325eda750b947a57c90c10
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r-- | src/plugins/designer/qtcreatorintegration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index fb4c1afd5d6..31a5336342a 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -134,7 +134,8 @@ QtCreatorIntegration::QtCreatorIntegration(QDesignerFormEditorInterface *core, Q connect(this, &QtCreatorIntegration::propertyChanged, this, [this](QDesignerFormWindowInterface *formWindow, const QString &name, const QVariant &) { - if (name == "objectName") { + qCDebug(log) << "got propertyChanged() signal" << name; + if (name.endsWith("Name")) { if (const auto extraCompiler = d->extraCompilers.find(formWindow); extraCompiler != d->extraCompilers.end()) { (*extraCompiler)->unblock(); |