aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-24 15:19:40 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:12:55 -0300
commit70a863eb2da935505ffa325c1772b13f4a80bded (patch)
tree6e8b5bfb18d0e951d047b04ec2be29cd1bf09758 /generator/shibokengenerator.h
parent9d36585f19bf858db10bee4c8b1933ed81301a98 (diff)
Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj types?) returns True for empty instance; probably should be False"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator/shibokengenerator.h')
-rw-r--r--generator/shibokengenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/shibokengenerator.h b/generator/shibokengenerator.h
index ade04662d..218bc4610 100644
--- a/generator/shibokengenerator.h
+++ b/generator/shibokengenerator.h
@@ -310,6 +310,8 @@ public:
bool useReturnValueHeuristic() const;
/// Returns true if the user enabled PySide extensions.
bool usePySideExtensions() const;
+ /// Return true if the generator should use the result of isNull()const to compute boolean casts.
+ bool useIsNullAsNbNonZero() const;
QString cppApiVariableName(const QString& moduleName = QString()) const;
QString getTypeIndexVariableName(const TypeEntry* metaType);
/// Returns true if the user don't want verbose error messages on the generated bindings.
@@ -369,6 +371,7 @@ private:
bool m_userReturnValueHeuristic;
bool m_usePySideExtensions;
bool m_verboseErrorMessagesDisabled;
+ bool m_useIsNullAsNbNonZero;
};