1- #pragma once
1+ #pragma once
22
33#include " Export.hpp"
44
@@ -22,16 +22,17 @@ Q_NAMESPACE_EXPORT(NODE_EDITOR_PUBLIC)
2222 * Constants used for fetching QVariant data from GraphModel.
2323 */
2424 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`
3536 };
3637Q_ENUM_NS (NodeRole)
3738
0 commit comments