nodeeditor icon indicating copy to clipboard operation
nodeeditor copied to clipboard

NodeDataModel::setNodeStyle() is of no effect

Open scarsty opened this issue 2 years ago • 1 comments

I have found that the node style for a special node is of no use. After checking the implement of DataFlowGraphModel::nodeData, I think these code maybe not right:

    case NodeRole::Style: {
        auto style = StyleCollection::nodeStyle();        
        result = style.toJson().toVariantMap();

Here a global node style is returned, so the specialed style for a node does not work.

I guess here should be:

        auto style = model->nodeStyle();

Or there are any reasons to return a global style?

scarsty avatar Mar 09 '23 16:03 scarsty