Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeDataModel::setNodeStyle() is of no effect #377

Open
scarsty opened this issue Mar 9, 2023 · 0 comments
Open

NodeDataModel::setNodeStyle() is of no effect #377

scarsty opened this issue Mar 9, 2023 · 0 comments

Comments

@scarsty
Copy link

scarsty commented Mar 9, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant