diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index 8f215a2862e57340742c2a8909c9c10364a52c2e..2af517f17258586e49743f59d5aedc72e7fa919a 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -599,7 +599,11 @@ QString templateGeneration(NodeMetaInfo type, NodeMetaInfo superType, const QmlO
     qSort(orderedList);
 
     foreach (const QString &name, orderedList) {
+
+        if (name.startsWith(QLatin1String("__")))
+            continue; //private API
         QString properName = name;
+
         properName.replace('.', '_');
 
         QString typeName = type.propertyTypeName(name);