instar-robotics / papyrus

Papyrus is the front end GUI that generates neural scripts that can be executed by kheops
GNU General Public License v3.0
1 stars 0 forks source link

Give a pointer to the `DiagramView` to the `DiagramScene` #14

Open nschoe opened 5 years ago

nschoe commented 5 years ago

Currently when the scene wants to access the (main, only) view, the way it is done is stupid and inefficient: it calls views() and parse that list, trying to dynamic_cast().

Since this is a needed in a lot of places, it would be better to use a pointer instead.