From e8984f09f18748033c09f89443ab4a791f99fbb7 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 22 Mar 2011 12:34:15 +0100
Subject: [PATCH] QmlDesigner.propertyEditor: do not show __properties

Properties starting __ with are private api by convention.

Reviewed-by: Kai Koehne
---
 .../qmldesigner/components/propertyeditor/propertyeditor.cpp  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index 8f215a2862e..2af517f1725 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);
-- 
GitLab