diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-07-15 11:29:46 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-07-15 11:29:46 (GMT) |
commit | c70a0e817aa771f8a6cf5d6e60ab40161382bdb3 (patch) | |
tree | 58e52a8582c1540dc027584905243308e970b4e2 /tools/qdoc3/node.h | |
parent | fa4c5540bd0fd9f8bb7238c1d947f0763b8607e1 (diff) | |
download | Qt-c70a0e817aa771f8a6cf5d6e60ab40161382bdb3.zip Qt-c70a0e817aa771f8a6cf5d6e60ab40161382bdb3.tar.gz Qt-c70a0e817aa771f8a6cf5d6e60ab40161382bdb3.tar.bz2 |
Phase 1 of QTBUG-20412, the XML manifest file
Diffstat (limited to 'tools/qdoc3/node.h')
-rw-r--r-- | tools/qdoc3/node.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/tools/qdoc3/node.h b/tools/qdoc3/node.h index e1e9440..2887923 100644 --- a/tools/qdoc3/node.h +++ b/tools/qdoc3/node.h @@ -58,7 +58,13 @@ QT_BEGIN_NAMESPACE +class Node; class InnerNode; +class ExampleNode; + +typedef QMap<QString, const Node*> NodeMap; +typedef QMultiMap<QString, Node*> NodeMultiMap; +typedef QMap<QString, const ExampleNode*> ExampleNodeMap; class Node { @@ -380,8 +386,10 @@ class FakeNode : public InnerNode virtual QString title() const; virtual QString fullTitle() const; virtual QString subTitle() const; + virtual QString imageFileName() const { return QString(); } const NodeList &groupMembers() const { return gr; } virtual QString nameForLists() const { return title(); } + virtual void setImageFileName(const QString& ) { } private: SubType sub; @@ -390,7 +398,21 @@ class FakeNode : public InnerNode NodeList gr; }; -#ifdef QDOC_QML +class ExampleNode : public FakeNode +{ + public: + ExampleNode(InnerNode* parent, const QString& name); + virtual ~ExampleNode() { } + virtual QString imageFileName() const { return imageFileName_; } + virtual void setImageFileName(const QString& ifn) { imageFileName_ = ifn; } + + public: + static ExampleNodeMap exampleNodeMap; + + private: + QString imageFileName_; +}; + class QmlClassNode : public FakeNode { public: @@ -482,7 +504,6 @@ class QmlPropertyNode : public LeafNode Trool wri; bool att; }; -#endif class EnumItem { |