summaryrefslogtreecommitdiffstats
path: root/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/src/components/propertyeditor/designerpropertymanager.cpp')
-rw-r--r--tools/designer/src/components/propertyeditor/designerpropertymanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp b/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
index 346da18..1dd5bd6 100644
--- a/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
+++ b/tools/designer/src/components/propertyeditor/designerpropertymanager.cpp
@@ -2455,6 +2455,9 @@ void DesignerEditorFactory::slotStringTextChanged(const QString &value)
if (val.userType() == DesignerPropertyManager::designerStringTypeId()) {
PropertySheetStringValue strVal = qVariantValue<PropertySheetStringValue>(val);
strVal.setValue(value);
+ // Disable translation if no translation subproperties exist.
+ if (varProp->subProperties().empty())
+ strVal.setTranslatable(false);
val = qVariantFromValue(strVal);
} else {
val = QVariant(value);