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 --- headergenerator.h | 1 - 1 file changed, 1 deletion(-) (limited to 'headergenerator.h') diff --git a/headergenerator.h b/headergenerator.h index 22dced489..c1f56b00e 100644 --- a/headergenerator.h +++ b/headergenerator.h @@ -42,7 +42,6 @@ private: void writeFunction(QTextStream& s, const AbstractMetaFunction* func) const; void writePureVirtualEmptyImpl(QTextStream& , const AbstractMetaFunction* func) const; void writeDefaultImplementation(QTextStream& s, const AbstractMetaFunction* func) const; - void writeTypeCheckMacro(QTextStream& s, const TypeEntry* type); void writeTypeConverterDecl(QTextStream& s, const TypeEntry* type); void writeSbkTypeFunction(QTextStream& s, const AbstractMetaEnum* cppEnum); void writeSbkTypeFunction(QTextStream& s, const AbstractMetaClass* cppClass); -- cgit v1.2.3