It seems like this will only set the icon for the first window created, and not for anything created after that (when new files are opened for instance). I'm not sure what the best way of addressing that would be - here are a few options :

- Just set the icon in the ScriptWindow constructor
- Use a childAddedSignal connection to detect the creation of new scripts and acquire the ScriptWindow and set the icon in that
- Add a static ScriptWindow.createdSignal() and set the icon in a slot connected to that

Any preference? I'm not super keen on any of them - maybe just the first one?