aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorJohn Cummings <jcummings2@users.sf.net>2012-06-01 17:06:28 -0500
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-06-04 19:44:28 +0200
commit30062e0944bf1a089d92f341f8a6b58dc6b3ba7f (patch)
tree38e261d01400e19f6cb939d47017c2f889b0fabe /PySide
parentee95e881929b3b51e535ad9024025cc7ac91d57c (diff)
Fixed template name typo
Fixed typo of template names by changing "convertion" to "conversion" Fixed all usages of incorrect name Note that this change is not backwards compatible if using the misspelled names in user code. Change-Id: Ie34e0ef8cc23362c8efb2d6bf1ec9779d6e4c42b Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core_common.xml46
-rw-r--r--PySide/typesystem_templates.xml4
2 files changed, 25 insertions, 25 deletions
diff --git a/PySide/QtCore/typesystem_core_common.xml b/PySide/QtCore/typesystem_core_common.xml
index 4a5e62672..91cbda81d 100644
--- a/PySide/QtCore/typesystem_core_common.xml
+++ b/PySide/QtCore/typesystem_core_common.xml
@@ -535,13 +535,13 @@
<include file-name="QStringList" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion">
+ <insert-template name="cpplist_to_pylist_conversion">
<replace from="%INTYPE_0" to="QString" />
</insert-template>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion">
+ <insert-template name="pyseq_to_cpplist_conversion">
<replace from="%OUTTYPE_0" to="QString" />
</insert-template>
</add-conversion>
@@ -553,13 +553,13 @@
<include file-name="qabstractitemmodel.h" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion">
+ <insert-template name="cpplist_to_pylist_conversion">
<replace from="%INTYPE_0" to="QModelIndex" />
</insert-template>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion">
+ <insert-template name="pyseq_to_cpplist_conversion">
<replace from="%OUTTYPE_0" to="QModelIndex" />
</insert-template>
</add-conversion>
@@ -571,11 +571,11 @@
<include file-name="QSet" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion"/>
+ <insert-template name="pyseq_to_cpplist_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -585,11 +585,11 @@
<include file-name="QList" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion"/>
+ <insert-template name="pyseq_to_cpplist_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -599,7 +599,7 @@
<include file-name="QVector" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
@@ -614,11 +614,11 @@
<include file-name="QStack" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion"/>
+ <insert-template name="pyseq_to_cpplist_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -628,11 +628,11 @@
<include file-name="QQueue" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion"/>
+ <insert-template name="pyseq_to_cpplist_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -642,17 +642,17 @@
<include file-name="QLinkedList" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cpplist_to_pylist_convertion"/>
+ <insert-template name="cpplist_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_convertion"/>
+ <insert-template name="pyseq_to_cpplist_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
</container-type>
- <template name="cppmap_to_pymap_convertion">
+ <template name="cppmap_to_pymap_conversion">
PyObject* %out = PyDict_New();
%INTYPE::const_iterator it = %in.begin();
for (; it != %in.end(); ++it) {
@@ -664,7 +664,7 @@
}
return %out;
</template>
- <template name="pydict_to_cppmap_convertion">
+ <template name="pydict_to_cppmap_conversion">
PyObject* key;
PyObject* value;
Py_ssize_t pos = 0;
@@ -680,11 +680,11 @@
<include file-name="pysideconversions.h" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cppmap_to_pymap_convertion"/>
+ <insert-template name="cppmap_to_pymap_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_convertion"/>
+ <insert-template name="pydict_to_cppmap_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -693,11 +693,11 @@
<include file-name="QMap" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cppmap_to_pymap_convertion"/>
+ <insert-template name="cppmap_to_pymap_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_convertion"/>
+ <insert-template name="pydict_to_cppmap_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
@@ -706,11 +706,11 @@
<include file-name="QMultiMap" location="global"/>
<conversion-rule>
<native-to-target>
- <insert-template name="cppmap_to_pymap_convertion"/>
+ <insert-template name="cppmap_to_pymap_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_convertion"/>
+ <insert-template name="pydict_to_cppmap_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
index 61b1471de..2c93e16dc 100644
--- a/PySide/typesystem_templates.xml
+++ b/PySide/typesystem_templates.xml
@@ -397,7 +397,7 @@
%PYARG_0 = Py_BuildValue("%TT_FORMAT", %TT_ARGS);
</template>
- <template name="cpplist_to_pylist_convertion">
+ <template name="cpplist_to_pylist_conversion">
PyObject* %out = PyList_New((int) %in.size());
%INTYPE::const_iterator it = %in.begin();
for (int idx = 0; it != %in.end(); ++it, ++idx) {
@@ -406,7 +406,7 @@
}
return %out;
</template>
- <template name="pyseq_to_cpplist_convertion">
+ <template name="pyseq_to_cpplist_conversion">
for (int i = 0; i &lt; PySequence_Size(%in); i++) {
Shiboken::AutoDecRef pyItem(PySequence_GetItem(%in, i));
%OUTTYPE_0 cppItem = %CONVERTTOCPP[%OUTTYPE_0](pyItem);