EricTRocks / pyflowgraph

Python Module for displaying flowgraphs using Pyside or PyQt.
BSD 3-Clause "New" or "Revised" License
76 stars 29 forks source link

Setting the z-depth of the selected node(s) so they're always on top … #4

Closed benoit-leveau closed 8 years ago

benoit-leveau commented 8 years ago

Creating a dozen nodes and moving them around quickly display a problem with z values. Some nodes are behind and will always remain so, even when selected, which is counter-intuitive.

Fixed this behavior by forcing the zValue of selected nodes to 10.0. Non-selected nodes are set to a zValue of 0.0.

See screenshot: fix_zdepth