diff --git a/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.cpp b/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.cpp index df7c61710429535666e6a630e38125b830829c57..62653b98433caa6fc0a7161015624b742b03b494 100644 --- a/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.cpp +++ b/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.cpp @@ -90,7 +90,7 @@ void DebugDrawerViewerWidgetController::onConnectComponent() } -SoNode *DebugDrawerViewerWidgetController::getScene() +SoNode* DebugDrawerViewerWidgetController::getScene() { return rootVisu; } @@ -109,8 +109,14 @@ void armarx::DebugDrawerViewerWidgetController::onExitComponent() void armarx::DebugDrawerViewerWidgetController::on_btnClearAll_clicked() { ARMARX_INFO << "Clearing visu"; - if(debugDrawer) + if (debugDrawer) { debugDrawer->clearAll(); } } + + +QIcon armarx::DebugDrawerViewerWidgetController::getWidgetIcon() const +{ + return QIcon(":icons/Outline-3D-DebugDrawer.png"); +} diff --git a/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.h b/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.h index dc43ee119a2afeddbfbfed7acaf9c72ddd0090dc..48344ef2cee6584f93c09b01465dfdeb1e3c169d 100644 --- a/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.h +++ b/source/RobotAPI/gui-plugins/DebugDrawerViewer/DebugDrawerViewerWidgetController.h @@ -53,7 +53,7 @@ namespace armarx */ class ARMARXCOMPONENT_IMPORT_EXPORT DebugDrawerViewerWidgetController: - public armarx::ArmarXComponentWidgetController + public armarx::ArmarXComponentWidgetController { Q_OBJECT @@ -121,6 +121,10 @@ namespace armarx private slots: void on_btnClearAll_clicked(); + + // ArmarXWidgetController interface + public: + QIcon getWidgetIcon() const; }; }