diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /dcoppython/shell/gen_marshal_code.py | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'dcoppython/shell/gen_marshal_code.py')
-rw-r--r-- | dcoppython/shell/gen_marshal_code.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dcoppython/shell/gen_marshal_code.py b/dcoppython/shell/gen_marshal_code.py index c24c8760..b6ae516f 100644 --- a/dcoppython/shell/gen_marshal_code.py +++ b/dcoppython/shell/gen_marshal_code.py @@ -34,7 +34,7 @@ class DictMaker: def handle_string_marsh(self, attribute): """Handle marshalling of string item from the dictionary.""" return ["if (%s && !PyString_Check(%s)) return false;" % (attribute, attribute), - "if (%s) { qobj.%s(QString(PyString_AsString(%s)));" % (attribute, set_method(attribute), attribute), + "if (%s) { qobj.%s(TQString(PyString_AsString(%s)));" % (attribute, set_method(attribute), attribute), "PyDict_DelItemString(dict,(char*)\"%s\"); } " % (attribute)] def handle_string_demarsh(self, attribute): @@ -197,11 +197,11 @@ for l in in_file.readlines(): if m.groups()[0]: current_operation = DEMARSHAL code.append("PyObject *demarshal_" + current_type + \ - "(QDataStream *str)") + "(TQDataStream *str)") else: current_operation = MARSHAL code.append("bool marshal_" + current_type + \ - "(PyObject *obj, QDataStream *str)") + "(PyObject *obj, TQDataStream *str)") dict_maker.set_operation(current_operation) continue |