Commit 0646a598 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'sceneGraphWidget' into 'master'

Added addresses to scene graph.

Scene graph widget shows addresses of nodes. Nice for debugging!

See merge request !120
parents 7e543184 8e80a19e
Pipeline #2300 passed with stage
in 80 minutes and 38 seconds
......@@ -71,6 +71,8 @@
#include "../Scenegraph/ShaderNode.hh"
#include "../Scenegraph/CoordFrameNode.hh"
#include <stdint.h>
//== FORWARDDECLARATIONS ======================================================
......@@ -611,7 +613,10 @@ QtSceneGraphWidget::Item::Item( Item * _parent,
void
QtSceneGraphWidget::Item::update()
{
setText( 0, node_->name().c_str());
QString name = tr("%1 @ 0x%2")
.arg(node_->name().c_str())
.arg(reinterpret_cast<uintptr_t>(node_), 0, 16);
setText( 0, name.toStdString().c_str());
setText( 1, node_->className().c_str());
switch (node_->status())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment