From: Thomas Hartmann Date: Mon, 6 Dec 2010 16:39:08 +0000 (+0100) Subject: QmlDesigner.propertyEditor: only show writable properties X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=073feb6e61c0afaad5b6795f4478f3f3b03d9ae4;p=qt-creator-jp%2Fqt-creator-jp.git QmlDesigner.propertyEditor: only show writable properties --- diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index 3a7f6b2ec5..45777358f9 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp @@ -588,7 +588,7 @@ QString templateGeneration(NodeMetaInfo type, NodeMetaInfo superType, const QmlO if (typeName == QLatin1String("alias") && objectNode.isValid()) typeName = objectNode.instanceType(name); - if (!superType.hasProperty(name)) { + if (!superType.hasProperty(name) && type.propertyIsWritable(name)) { if (typeName == "int") { qmlTemplate += QString(QLatin1String( "IntEditor { backendValue: backendValues.%2\n caption: \"%1\"\nbaseStateFlag: isBaseState\nslider: false\n}"