aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-11 17:12:11 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-11 17:12:11 -0300
commit835cc5773b8fea68c3121f2f86e69ef1c3d4aa2d (patch)
treeb851e5df015936a80acd2514894cb9531d52d674 /shibokengenerator.cpp
parenta79deb363718cda61416ac2796350b40a93fb8df (diff)
Fix more compiler errors on generated code.
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r--shibokengenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index ae9ce6553..4717a92a4 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -115,7 +115,7 @@ void ShibokenGenerator::initPrimitiveTypesCorrespondences()
m_pythonOperators["operator>="] = "ge";
m_pythonOperators["operator[]"] = "getitem";
-
+
// Initialize format units for C++->Python->C++ conversion
m_formatUnits.clear();
m_formatUnits.insert("char", "b");
@@ -326,6 +326,8 @@ QString ShibokenGenerator::cpythonBaseName(const TypeEntry* type)
default:
Q_ASSERT(false);
}
+ } else if (type->isFlags()) {
+ baseName = "PyMethod"; // FIXME: This is just a placeholder! Add support for qflags!
} else {
baseName = "PyObject";
}