From 7a20807ab06f0fbedc00d81d94a2254e98748bf0 Mon Sep 17 00:00:00 2001 From: Rainer Kartmann <rainer.kartmann@kit.edu> Date: Fri, 27 Mar 2020 08:48:14 +0100 Subject: [PATCH] Init in setWidget() --- source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.cpp b/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.cpp index a9f8f6378..9c96d1294 100644 --- a/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.cpp +++ b/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.cpp @@ -45,6 +45,10 @@ namespace armarx this->updateLayerElementProperties(item, this->layer->elements.at(item->text(0).toStdString()).data); } })); + + widget->setColumnCount(2); + widget->setHeaderLabels({"Property", "Value"}); + widget->setHeaderHidden(false); } void LayerInfoTree::registerVisualizerCallbacks(viz::CoinVisualizer& visualizer) @@ -77,9 +81,6 @@ namespace armarx maxElementCount = maxElementCountDefault; widget->clear(); - widget->setColumnCount(2); - widget->setHeaderLabels({"Property", "Value"}); - widget->setHeaderHidden(false); if (!layer) { -- GitLab