From 40b10e15dae3fe1422452446ecc35574a1abbc8a Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Wed, 16 Jun 2010 19:36:55 -0300 Subject: Fixes AbstractMetaBuilder::fixDefaultValue method. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason if a default value given to above mentioned function is exactly "QVariant::Invalid" it is turned into "0". This is done for no apparent reason and causes the Python binding generator to produce bad source code for the QtSql module bindings. Reviewed by Luciano Wolf Reviewed by Renato Araújo --- abstractmetabuilder.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'abstractmetabuilder.cpp') diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 5cfec42bf..f3390e563 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -2008,8 +2008,6 @@ QString AbstractMetaBuilder::fixDefaultValue(ArgumentModelItem item, AbstractMet else expr = "false"; } - } else if (expr == "QVariant::Invalid") { - expr = QString::number(QVariant::Invalid); } else { // This can be an enum or flag so I need to delay the // translation untill all namespaces are completly -- cgit v1.2.3