summaryrefslogtreecommitdiffstats
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>2011-02-28 20:23:32 -0300
commit361c887da0875c29d9d7a8c7cf3abc257400e687 (patch)
tree3dd9d164c63495d60e4ae0fbfce8924e5d9e0cff
parent75f799872bf3f386f70a0d85bd62879ec14b18f8 (diff)
downloadpyside-361c887da0875c29d9d7a8c7cf3abc257400e687.tar.gz
pyside-361c887da0875c29d9d7a8c7cf3abc257400e687.tar.xz
pyside-361c887da0875c29d9d7a8c7cf3abc257400e687.zip
Added modify-documentation do QDeclarativePropertyMap to remove references to QVariant and QString.
-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 e754006..7343a4b 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">