summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index 17694e201..1667f485b 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -551,7 +551,7 @@ QList<Section> CppCodeMarker::sections(const Aggregate *inner,
bool isSlot = false;
bool isSignal = false;
bool isStatic = false;
- if ((*c)->type() == Node::Function) {
+ if ((*c)->isFunction()) {
const FunctionNode *func = (const FunctionNode *) *c;
isSlot = (func->isSlot());
isSignal = (func->isSignal());
@@ -565,10 +565,16 @@ QList<Section> CppCodeMarker::sections(const Aggregate *inner,
continue;
}
}
- else if ((*c)->type() == Node::Variable) {
+ else if ((*c)->isVariable()) {
const VariableNode *var = static_cast<const VariableNode *>(*c);
isStatic = var->isStatic();
}
+ else if ((*c)->isTypedef()) {
+ if ((*c)->name() == QLatin1String("QtGadgetHelper")) {
+ ++c;
+ continue;
+ }
+ }
switch ((*c)->access()) {
case Node::Public:
@@ -696,6 +702,10 @@ QList<Section> CppCodeMarker::sections(const Aggregate *inner,
if ((*c)->isSharingComment()) {
// do nothing
} else if ((*c)->isEnumType() || (*c)->isTypedef()) {
+ if ((*c)->name() == QLatin1String("QtGadgetHelper")) {
+ ++c;
+ continue;
+ }
insert(memberTypes, *c, style, status);
} else if ((*c)->isProperty()) {
insert(properties, *c, style, status);