path: root/generator/shibokengenerator.h
diff options
authorHugo Parente Lima <>2011-01-24 15:19:40 -0200
committerHugo Parente Lima <>2011-01-24 16:42:00 -0200
commit55daad72b2358614bd4ec69728887ba631f01a4c (patch)
tree8be18472e8b6ec5eba3cb099178c5544c506c4e4 /generator/shibokengenerator.h
parent63e2501545f8ef932414ae617f02fe73681e987c (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 <> Renato Ara├║jo <>
Diffstat (limited to 'generator/shibokengenerator.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/shibokengenerator.h b/generator/shibokengenerator.h
index ade04662..218bc461 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;