@@ -18,23 +18,27 @@ NODE_EDITOR_PUBLIC Q_NAMESPACE
1818Q_NAMESPACE_EXPORT (NODE_EDITOR_PUBLIC)
1919#endif
2020
21- /* *
21+ /* *
2222 * Constants used for fetching QVariant data from GraphModel.
2323 */
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`
35- ValidationState = 11 , // /< Enum NodeValidationState of the node
36- ProcessingStatus = 12 // /< Enum NodeProcessingStatus of the node
37- };
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`
35+ ValidationState = 11 , // /< Enum NodeValidationState of the node
36+ LabelVisible = 12 , // /< `bool` for label visibility.
37+ ProcessingStatus = 13 , // /< Enum NodeProcessingStatus of the node
38+ Label = 14 , // /< `QString` for node label.
39+ LabelEditable = 15 , // /< `bool` to indicate label editing support.
40+ };
41+
3842Q_ENUM_NS (NodeRole)
3943
4044/* *
0 commit comments