tools/qdoc3/cppcodemarker.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   823     }
   823     }
   824 
   824 
   825     return sections;
   825     return sections;
   826 }
   826 }
   827 
   827 
   828 const Node *CppCodeMarker::resolveTarget(const QString &target,
   828 const Node *CppCodeMarker::resolveTarget(const QString& target,
   829                                          const Tree *tree,
   829                                          const Tree* tree,
   830                                          const Node *relative)
   830                                          const Node* relative,
       
   831                                          const Node* self)
   831 {
   832 {
   832     if (target.endsWith("()")) {
   833     if (target.endsWith("()")) {
   833         const FunctionNode *func;
   834         const FunctionNode *func;
   834         QString funcName = target;
   835         QString funcName = target;
   835         funcName.chop(2);
   836         funcName.chop(2);
   867         }
   868         }
   868     }
   869     }
   869     else {
   870     else {
   870         QStringList path = target.split("::");
   871         QStringList path = target.split("::");
   871         const Node *node;
   872         const Node *node;
       
   873         int flags = Tree::SearchBaseClasses |
       
   874             Tree::SearchEnumValues |
       
   875             Tree::NonFunction;
   872         if ((node = tree->findNode(path,
   876         if ((node = tree->findNode(path,
   873                                    relative,
   877                                    relative,
   874                                    Tree::SearchBaseClasses |
   878                                    flags,
   875                                    Tree::SearchEnumValues |
   879                                    self)))
   876                                    Tree::NonFunction)))
       
   877             return node;
   880             return node;
   878     }
   881     }
   879     return 0;
   882     return 0;
   880 }
   883 }
   881 
   884