diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-01 14:40:15 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-01 16:38:59 -0300 |
commit | 7d38f877d69fe44dbe7c36fb15cd477acccb4500 (patch) | |
tree | 6a5972b53afc68327047785937a3ed53cf67b79d /shibokengenerator.h | |
parent | 2a5ad3e48e5a148bc87bd6dbb74c695dd352a79a (diff) |
Fix bug#316 - "QAbstractItemModel.createIndex is broken"
Use SbkNumber_Check instead of PyNumber_Check, because PyNumber_Check returns true
for all user types.
This commit also disable the generation of _Check macros and replaces all entries
with Converter<T>::checkType.
Those changes are on the same commit because SbkNumber_Check conflicts with a macro
generated by "other" binding which binds a type named "Number".
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 8ab6d7c51..37f484a95 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -243,7 +243,7 @@ public: QString cpythonTypeName(const AbstractMetaClass* metaClass); QString cpythonTypeName(const TypeEntry* type); QString cpythonTypeNameExt(const TypeEntry* type); - QString cpythonCheckFunction(const TypeEntry* type, bool genericNumberType = false, bool checkExact = false); + QString cpythonCheckFunction(const TypeEntry* type, bool genericNumberType = false); QString cpythonCheckFunction(const AbstractMetaType* metaType, bool genericNumberType = false); QString guessCPythonCheckFunction(const QString& type); QString cpythonIsConvertibleFunction(const TypeEntry* type, bool genericNumberType = false, bool checkExact = false); |