From 7d38f877d69fe44dbe7c36fb15cd477acccb4500 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 1 Sep 2010 14:40:15 -0300 Subject: Fix bug#316 - "QAbstractItemModel.createIndex is broken" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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::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 Renato Araújo --- shibokengenerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shibokengenerator.h') 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); -- cgit v1.2.3