Added modify-documentation do QDeclarativePropertyMap to remove references to QVariant and QString.
This commit is contained in:
parent
eb2a982b94
commit
905f660ab2
1 changed files with 14 additions and 1 deletions
|
|
@ -127,7 +127,20 @@
|
||||||
<enum-type name="Type" />
|
<enum-type name="Type" />
|
||||||
</value-type>
|
</value-type>
|
||||||
|
|
||||||
<object-type name="QDeclarativePropertyMap" />
|
<object-type name="QDeclarativePropertyMap">
|
||||||
|
<modify-documentation xpath="description/code[1]"><code># create our data
|
||||||
|
ownerData = QDeclarativePropertyMap()
|
||||||
|
ownerData.insert("name", "John Smith")
|
||||||
|
ownerData.insert("phone", "555-5555")
|
||||||
|
|
||||||
|
# expose it to the UI layer
|
||||||
|
view = QDeclarativeView()
|
||||||
|
ctxt = view.rootContext()
|
||||||
|
ctxt.setContextProperty("owner", ownerData)
|
||||||
|
|
||||||
|
view.setSource(QUrl.fromLocalFile("main.qml"))
|
||||||
|
view.show()</code></modify-documentation>
|
||||||
|
</object-type>
|
||||||
<object-type name="QDeclarativePropertyValueSource" />
|
<object-type name="QDeclarativePropertyValueSource" />
|
||||||
<value-type name="QDeclarativeScriptString" />
|
<value-type name="QDeclarativeScriptString" />
|
||||||
<object-type name="QDeclarativeView">
|
<object-type name="QDeclarativeView">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue