aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/designercore/include/modelnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/designercore/include/modelnode.h')
-rw-r--r--src/plugins/qmldesigner/designercore/include/modelnode.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/designercore/include/modelnode.h b/src/plugins/qmldesigner/designercore/include/modelnode.h
index ac65de0240..3197e746ab 100644
--- a/src/plugins/qmldesigner/designercore/include/modelnode.h
+++ b/src/plugins/qmldesigner/designercore/include/modelnode.h
@@ -57,6 +57,7 @@ class NodeListProperty;
class NodeProperty;
class NodeAbstractProperty;
class ModelNode;
+class GlobalAnnotationStatus;
class Comment;
class Annotation;
@@ -90,9 +91,12 @@ public:
ModelNode(const Internal::InternalNodePointer &internalNode, Model *model, const AbstractView *view);
ModelNode(const ModelNode &modelNode, AbstractView *view);
ModelNode(const ModelNode &other);
+ ModelNode(ModelNode &&other);
~ModelNode();
- ModelNode& operator=(const ModelNode &other);
+ ModelNode &operator=(const ModelNode &other);
+ ModelNode &operator=(ModelNode &&other);
+
TypeName type() const;
QString simplifiedTypeName() const;
QString displayName() const;
@@ -202,6 +206,16 @@ public:
void setAnnotation(const Annotation &annotation);
void removeAnnotation();
+ Annotation globalAnnotation() const;
+ bool hasGlobalAnnotation() const;
+ void setGlobalAnnotation(const Annotation &annotation);
+ void removeGlobalAnnotation();
+
+ GlobalAnnotationStatus globalStatus() const;
+ bool hasGlobalStatus() const;
+ void setGlobalStatus(const GlobalAnnotationStatus &status);
+ void removeGlobalStatus();
+
qint32 internalId() const;
void setNodeSource(const QString&);
@@ -215,6 +229,15 @@ public:
bool isSubclassOf(const TypeName &typeName, int majorVersion = -1, int minorVersion = -1) const;
QIcon typeIcon() const;
+ friend void swap(ModelNode &first, ModelNode &second)
+ {
+ using std::swap;
+
+ swap(first.m_internalNode, second.m_internalNode);
+ swap(first.m_model, second.m_model);
+ swap(first.m_view, second.m_view);
+ }
+
private: // functions
Internal::InternalNodePointer internalNode() const;