logic: Refactored namespace activation

* show namespace name in search view when activated
* show namespace definitions in code view when activated
* no children in namespace
* no implicit nodes in overview or namespace
* Show a maximum of 10 open snippets
* Fixed bug causing nodes in GraphView to be stacked at 0,0
This commit is contained in:
Eberhard Graether
2016-04-12 11:59:37 +02:00
parent e8e6b909a8
commit 9307d6d855
13 changed files with 88 additions and 130 deletions
@@ -105,7 +105,7 @@ bool QtGraphNode::setPosition(const Vec2i& position)
Vec2i currentPosition = getPosition();
Vec2i offset = position - currentPosition;
if (offset.getLength() > 0.0f)
if (offset.x != 0 || offset.y != 0)
{
this->moveBy(offset.x, offset.y);
notifyEdgesAfterMove();