aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtDeclarative
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-28 20:21:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:00 -0300
commit905f660ab2c75ab6396b946869e07ed962845099 (patch)
tree62aba7343d35599dd50c07a2e60ede334ae39ded /PySide/QtDeclarative
parenteb2a982b94a20bc55a173e24908b6b5bf6bfe296 (diff)
Added modify-documentation do QDeclarativePropertyMap to remove references to QVariant and QString.
Diffstat (limited to 'PySide/QtDeclarative')
-rw-r--r--PySide/QtDeclarative/typesystem_declarative.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/PySide/QtDeclarative/typesystem_declarative.xml b/PySide/QtDeclarative/typesystem_declarative.xml
index e7540062a..7343a4b49 100644
--- a/PySide/QtDeclarative/typesystem_declarative.xml
+++ b/PySide/QtDeclarative/typesystem_declarative.xml
@@ -127,7 +127,20 @@
<enum-type name="Type" />
</value-type>
- <object-type name="QDeclarativePropertyMap" />
+ <object-type name="QDeclarativePropertyMap">
+ <modify-documentation xpath="description/code[1]">&lt;code># create our data
+ownerData = QDeclarativePropertyMap()
+ownerData.insert(&quot;name&quot;, &quot;John Smith&quot;)
+ownerData.insert(&quot;phone&quot;, &quot;555-5555&quot;)
+
+# expose it to the UI layer
+view = QDeclarativeView()
+ctxt = view.rootContext()
+ctxt.setContextProperty(&quot;owner&quot;, ownerData)
+
+view.setSource(QUrl.fromLocalFile(&quot;main.qml&quot;))
+view.show()&lt;/code></modify-documentation>
+ </object-type>
<object-type name="QDeclarativePropertyValueSource" />
<value-type name="QDeclarativeScriptString" />
<object-type name="QDeclarativeView">