Nodz icon indicating copy to clipboard operation
Nodz copied to clipboard

allow creation of subclasses of NodeItem for better draw customization

Open coderbone opened this issue 7 years ago • 2 comments

I am currently subclassing Nodz to do some custom drawing and would like to use a subclass of NodeItem so that even more custom drawing can be done. To do this I propose splitting the line in createNode that actually instantiates a new NodeItem into it's own member function so that a subclass of Nodz can provide it's own implementation and return apropos subclass instances. Similar treatment would be applied Plug/Socket/Connection for full customization.

Any objections?

coderbone avatar Jul 07 '17 11:07 coderbone

👍

predat avatar Jul 07 '17 11:07 predat

I've put in PR #15

coderbone avatar Jul 07 '17 14:07 coderbone