nodeeditor icon indicating copy to clipboard operation
nodeeditor copied to clipboard

Special context menus

Open russelltg opened this issue 8 years ago • 2 comments

I think it'd be useful to have context menus for nodes. I also think it'd be useful for the user to be able to configure which actions are there, or maybe even totally custom action menus.

Another possibility is you could be able to set the ContextMenuPolicy to allow for custom context menus entirely on nodes.

What is the best way to go about this? Some sort of addNodeContextAction?

russelltg avatar Mar 22 '17 23:03 russelltg

Maybe return an std::vector<QAction*> from the model? An empty vector would mean no context menu.

paceholder avatar Mar 26 '17 18:03 paceholder

That sounds like a sound idea. I'd be willing to work on that when I have the time.

russelltg avatar Mar 28 '17 05:03 russelltg