aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/parser/codemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/parser/codemodel.h')
-rw-r--r--sources/shiboken2/ApiExtractor/parser/codemodel.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/sources/shiboken2/ApiExtractor/parser/codemodel.h b/sources/shiboken2/ApiExtractor/parser/codemodel.h
index 811cfec3e..4d6bfd06a 100644
--- a/sources/shiboken2/ApiExtractor/parser/codemodel.h
+++ b/sources/shiboken2/ApiExtractor/parser/codemodel.h
@@ -35,7 +35,6 @@
#include "codemodel_enums.h"
#include <QtCore/QHash>
-#include <QtCore/QList>
#include <QtCore/QSet>
#include <QtCore/QString>
#include <QtCore/QStringList>
@@ -57,6 +56,10 @@ public:
enum FunctionType {
Normal,
+ Constructor,
+ CopyConstructor,
+ MoveConstructor,
+ Destructor,
Signal,
Slot
};
@@ -158,21 +161,18 @@ public:
m_arrayElements = arrayElements;
}
- QList<TypeInfo> arguments() const
- {
- return m_arguments;
- }
+ QVector<TypeInfo> arguments() const { return m_arguments; }
- void setArguments(const QList<TypeInfo> &arguments);
+ void setArguments(const QVector<TypeInfo> &arguments);
void addArgument(const TypeInfo &arg)
{
m_arguments.append(arg);
}
- bool operator==(const TypeInfo &other);
+ bool operator==(const TypeInfo &other) const;
- bool operator!=(const TypeInfo &other)
+ bool operator!=(const TypeInfo &other) const
{
return !(*this == other);
}
@@ -193,7 +193,7 @@ private:
QStringList m_qualifiedName;
QStringList m_arrayElements;
- QList<TypeInfo> m_arguments;
+ QVector<TypeInfo> m_arguments;
union {
uint flags;
@@ -320,7 +320,7 @@ public:
FunctionModelItem declaredFunction(FunctionModelItem item);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
protected:
@@ -372,7 +372,7 @@ public:
QStringList propertyDeclarations() const { return m_propertyDeclarations; }
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -395,14 +395,14 @@ public:
~_NamespaceModelItem();
NamespaceList namespaces() const { return m_namespaces; }
- QSet<NamespaceModelItem> uniqueNamespaces() const { return m_namespaces.toSet(); }
+ QSet<NamespaceModelItem> uniqueNamespaces() const;
void addNamespace(NamespaceModelItem item);
NamespaceModelItem findNamespace(const QString &name) const;
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -442,7 +442,7 @@ public:
void setDefaultValueExpression(const QString &expr) { m_defaultValueExpression = expr; }
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -496,7 +496,7 @@ public:
void setType(const TypeInfo &type);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -558,7 +558,7 @@ public:
bool isSimilar(FunctionModelItem other) const;
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -602,7 +602,7 @@ public:
void setType(const TypeInfo &type);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -629,7 +629,7 @@ public:
void setAnonymous(bool anonymous);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -653,7 +653,7 @@ public:
void setValue(const QString &value);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private:
@@ -678,7 +678,7 @@ public:
void setDefaultValue(bool defaultValue);
#ifndef QT_NO_DEBUG_STREAM
- void formatDebug(QDebug &d) const Q_DECL_OVERRIDE;
+ void formatDebug(QDebug &d) const override;
#endif
private: