summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-11-05 13:09:16 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-11-11 12:47:34 (GMT)
commit385ef0b086d0736d1dd8ef03ced73c73e61dcb43 (patch)
tree98643160d26b38de4d491a1952f4722c64ffd978 /tools/qdoc3/node.h
parent3a492b3bcd3898335dd36b46906a5b9cce5120f3 (diff)
downloadQt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.zip
Qt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.tar.gz
Qt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.tar.bz2
qdoc3: Fixed a linking problem for qml methods.
Note the Invalid Syntax errors for some uses of \qmlmethod and \qmlsignal. A syntactically correct signature is now required as the argument.
Diffstat (limited to 'tools/qdoc3/node.h')
-rw-r--r--tools/qdoc3/node.h39
1 files changed, 9 insertions, 30 deletions
diff --git a/tools/qdoc3/node.h b/tools/qdoc3/node.h
index 5712879..3f5be6c 100644
--- a/tools/qdoc3/node.h
+++ b/tools/qdoc3/node.h
@@ -151,6 +151,7 @@ class Node
virtual bool isInnerNode() const = 0;
virtual bool isReimp() const { return false; }
+ virtual bool isFunction() const { return false; }
Type type() const { return typ; }
virtual SubType subType() const { return NoSubType; }
InnerNode *parent() const { return par; }
@@ -239,6 +240,9 @@ class InnerNode : public Node
NodeList overloads(const QString &funcName) const;
const QStringList& includes() const { return inc; }
+ QStringList primaryKeys();
+ QStringList secondaryKeys();
+
protected:
InnerNode(Type type, InnerNode *parent, const QString& name);
@@ -421,36 +425,6 @@ class QmlPropertyNode : public LeafNode
Trool wri;
bool att;
};
-
-class QmlSignalNode : public LeafNode
-{
- public:
- QmlSignalNode(QmlClassNode* parent,
- const QString& name,
- bool attached);
- virtual ~QmlSignalNode() { }
-
- const QString& element() const { return parent()->name(); }
- bool isAttached() const { return att; }
-
- private:
- bool att;
-};
-
-class QmlMethodNode : public LeafNode
-{
- public:
- QmlMethodNode(QmlClassNode* parent,
- const QString& name,
- bool attached);
- virtual ~QmlMethodNode() { }
-
- const QString& element() const { return parent()->name(); }
- bool isAttached() const { return att; }
-
- private:
- bool att;
-};
#endif
class EnumItem
@@ -564,6 +538,7 @@ class FunctionNode : public LeafNode
enum Virtualness { NonVirtual, ImpureVirtual, PureVirtual };
FunctionNode(InnerNode *parent, const QString &name);
+ FunctionNode(Type type, InnerNode *parent, const QString &name, bool attached);
virtual ~FunctionNode() { }
void setReturnType(const QString& returnType) { rt = returnType; }
@@ -589,6 +564,7 @@ class FunctionNode : public LeafNode
bool isStatic() const { return sta; }
bool isOverload() const { return ove; }
bool isReimp() const { return reimp; }
+ bool isFunction() const { return true; }
int overloadNumber() const;
int numOverloads() const;
const QList<Parameter>& parameters() const { return params; }
@@ -600,6 +576,8 @@ class FunctionNode : public LeafNode
QStringList reconstructParams(bool values = false) const;
QString signature(bool values = false) const;
+ const QString& element() const { return parent()->name(); }
+ bool isAttached() const { return att; }
private:
void setAssociatedProperty(PropertyNode *property);
@@ -620,6 +598,7 @@ class FunctionNode : public LeafNode
bool sta : 1;
bool ove : 1;
bool reimp: 1;
+ bool att: 1;
QList<Parameter> params;
const FunctionNode *rf;
const PropertyNode *ap;