diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-05 10:55:09 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-05 13:18:10 -0300 |
commit | e3ccffb6b50c3508f0c92280dd314b8393c4ff03 (patch) | |
tree | a42bb6f374bef539fc1a8e1511c31ef4a872fff8 /cppgenerator.h | |
parent | 934fa3cb1a2672120bd82bb65764dc6a355ead35 (diff) |
updated Python representation of C++ enums and flags (only QFlags at the
moment): the enum/flags numeric operators are shorter and only flags allow
new instances to be created and the libshiboken
Reviewd by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r-- | cppgenerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.h b/cppgenerator.h index 3e50d1eb8..91517c6d0 100644 --- a/cppgenerator.h +++ b/cppgenerator.h @@ -94,7 +94,7 @@ private: void writeRichCompareFunction(QTextStream& s, const AbstractMetaClass* metaClass); - void writeEnumNewMethod(QTextStream& s, const AbstractMetaEnum* metaEnum); + void writeFlagsNewMethod(QTextStream& s, const FlagsTypeEntry* cppFlags); void writeEnumDefinition(QTextStream& s, const AbstractMetaEnum* metaEnum); void writeEnumInitialization(QTextStream& s, const AbstractMetaEnum* metaEnum); |