1
- #pragma once
1
+ #pragma once
2
2
3
3
#include " Export.hpp"
4
4
@@ -22,16 +22,17 @@ Q_NAMESPACE_EXPORT(NODE_EDITOR_PUBLIC)
22
22
* Constants used for fetching QVariant data from GraphModel.
23
23
*/
24
24
enum class NodeRole {
25
- Type = 0 , // /< Type of the current node, usually a string.
26
- Position = 1 , // /< `QPointF` positon of the node on the scene.
27
- Size = 2 , // /< `QSize` for resizable nodes.
28
- CaptionVisible = 3 , // /< `bool` for caption visibility.
29
- Caption = 4 , // /< `QString` for node caption.
30
- Style = 5 , // /< Custom NodeStyle as QJsonDocument
31
- InternalData = 6 , // /< Node-stecific user data as QJsonObject
32
- InPortCount = 7 , // /< `unsigned int`
33
- OutPortCount = 9 , // /< `unsigned int`
34
- Widget = 10 , // /< Optional `QWidget*` or `nullptr`
25
+ Type = 0 , // /< Type of the current node, usually a string.
26
+ Position, // /< `QPointF` positon of the node on the scene.
27
+ Size, // /< `QSize` for resizable nodes.
28
+ CaptionVisible, // /< `bool` for caption visibility.
29
+ Caption, // /< `QString` for node caption.
30
+ Style, // /< Custom NodeStyle as QJsonDocument
31
+ InternalData, // /< Node-stecific user data as QJsonObject
32
+ InPortCount, // /< `unsigned int`
33
+ OutPortCount, // /< `unsigned int`
34
+ WidgetEmbeddable, // /< `bool` for widget embeddability
35
+ Widget, // /< Optional `QWidget*` or `nullptr`
35
36
};
36
37
Q_ENUM_NS (NodeRole)
37
38
0 commit comments