summaryrefslogtreecommitdiffstats
path: root/generators/qtdoc
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-25 23:40:20 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-26 13:32:10 -0300
commit7ab82eea807ed63ef4bf88668f12568e340b6b5c (patch)
tree8c26c1310988109345892772977dbfd740745088 /generators/qtdoc
parent5255857f84d629241806d883bb23981b49fd4bc8 (diff)
downloadgeneratorrunner-7ab82eea807ed63ef4bf88668f12568e340b6b5c.tar.gz
generatorrunner-7ab82eea807ed63ef4bf88668f12568e340b6b5c.tar.xz
generatorrunner-7ab82eea807ed63ef4bf88668f12568e340b6b5c.zip
Use QFlags instead of an int as parameter type in some methods.
Reviewed by Setanta
Diffstat (limited to 'generators/qtdoc')
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp2
-rw-r--r--generators/qtdoc/qtdocgenerator.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index 8e8498d..4070dde 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -1188,7 +1188,7 @@ void QtDocGenerator::writeFunctionSignature(QTextStream& s, const AbstractMetaCl
QString QtDocGenerator::translateToPythonType(const AbstractMetaType *type, const AbstractMetaClass *cppClass)
{
- QString originalType = translateType(type, cppClass, Generator::ExcludeConst | Generator::ExcludeReference);
+ QString originalType = translateType(type, cppClass, Options(ExcludeConst) | ExcludeReference);
QString strType = originalType;
//remove "*"
diff --git a/generators/qtdoc/qtdocgenerator.h b/generators/qtdoc/qtdocgenerator.h
index c9b4113..8174a97 100644
--- a/generators/qtdoc/qtdocgenerator.h
+++ b/generators/qtdoc/qtdocgenerator.h
@@ -181,8 +181,8 @@ protected:
void generateClass(QTextStream& s, const AbstractMetaClass* cppClass);
void finishGeneration();
- void writeFunctionArguments(QTextStream&, const AbstractMetaFunction*, uint) const {}
- void writeArgumentNames(QTextStream&, const AbstractMetaFunction*, uint) const {}
+ void writeFunctionArguments(QTextStream&, const AbstractMetaFunction*, Options) const {}
+ void writeArgumentNames(QTextStream&, const AbstractMetaFunction*, Options) const {}
QString subDirectoryForClass(const AbstractMetaClass* clazz) const
{
Q_ASSERT(false);