diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-16 19:36:55 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:05 -0300 |
commit | 40b10e15dae3fe1422452446ecc35574a1abbc8a (patch) | |
tree | 39ef6c0bcf2efa07d7979ece3589da7e43e845e5 /abstractmetabuilder.cpp | |
parent | 29c834e6bfc6bc2952844d98c4e3502c70c40063 (diff) |
Fixes AbstractMetaBuilder::fixDefaultValue method.
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 <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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 |