diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-01 08:52:56 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-01 08:52:56 (GMT) |
commit | 83e926db90f620d18078ef3d634cf033e88cefa9 (patch) | |
tree | 27b9bad1cd9c1f67192f1526e73b8210a9c5d088 /tools/qdoc3/node.h | |
parent | f58d0870f8e10d7943e1b2c22fcfa92b96ac7495 (diff) | |
parent | eee351a2af7e34dfc851a95820075842f856a8f2 (diff) | |
download | Qt-83e926db90f620d18078ef3d634cf033e88cefa9.zip Qt-83e926db90f620d18078ef3d634cf033e88cefa9.tar.gz Qt-83e926db90f620d18078ef3d634cf033e88cefa9.tar.bz2 |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-water-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-water-team: (75 commits)
Update license headers
Fix build with Clang for libpng versions 1.4.0 to 1.5.2
Silently ignore a wrong parameter count instead of crashing
Introducing --address <bus> parameter to qdbus
Fix Symbian system date format parsing.
Fix QXmlSimpleReader auto test failer
QSslCertificate: also check common name for blacklisted certificates
QSslCertificate: regenerate blacklisted certificates, they were expired
don't crash when destroying the shortcuts
Doc: added since tag to QDateTime::msecsTo
QSslCertificate: blacklist fraudulent *.google.com
QDeclarative::hasActiveFocus should return false for hidden items
FocusScope's focusItem must always be a descendent
qdoc3: Updates to qdoc to print error message in ALL CAPS
Fix pointer event mapping when windows are fixed to native orientation
Do not unconditionally use pkg-config in .pro files
Updated WebKit to dda59e50379214c098f365a39c4d64b39ced427e
Updated WebKit to 85d4df147ac7b239497b05979a51fd6fde7580fd
Updated WebKit to 836fa24be73978fb292e954abb151fb46b1d97e0
Doc: Added a note to Code Editor example docs
...
Diffstat (limited to 'tools/qdoc3/node.h')
-rw-r--r-- | tools/qdoc3/node.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/tools/qdoc3/node.h b/tools/qdoc3/node.h index e1e9440..3b031b6 100644 --- a/tools/qdoc3/node.h +++ b/tools/qdoc3/node.h @@ -58,7 +58,15 @@ QT_BEGIN_NAMESPACE +class Node; +class ClassNode; class InnerNode; +class ExampleNode; +class QmlClassNode; + +typedef QMap<QString, const Node*> NodeMap; +typedef QMultiMap<QString, Node*> NodeMultiMap; +typedef QMap<QString, const ExampleNode*> ExampleNodeMap; class Node { @@ -194,6 +202,8 @@ class Node QString guid() const; QString ditaXmlHref(); QString extractClassName(const QString &string) const; + const QmlClassNode* qmlClassNode() const; + const ClassNode* declarativeCppNode() const; protected: Node(Type type, InnerNode* parent, const QString& name); @@ -380,8 +390,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 +402,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 +508,6 @@ class QmlPropertyNode : public LeafNode Trool wri; bool att; }; -#endif class EnumItem { |