Skip to content
Snippets Groups Projects
Commit 9664906f authored by Raphael's avatar Raphael
Browse files

add an icon to the RobotUnitPluginGuiPlugin

parent 9aac9a93
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ set(GUI_UIS
RobotUnitSensorDevicesWidget.ui
)
QT4_ADD_RESOURCES( QT_RC_SRCS icons.qrc )
list(APPEND SOURCES ${QT_RC_SRCS})
set(COMPONENT_LIBS
${QT_LIBRARIES}
ArmarXGuiBase
......@@ -61,5 +64,6 @@ set(COMPONENT_LIBS
)
if(ArmarXGui_FOUND)
install(DIRECTORY icons/ DESTINATION share/${PROJECT_NAME} COMPONENT data)
armarx_gui_library(RobotUnitPluginGuiPlugin "${SOURCES}" "${GUI_MOC_HDRS}" "${GUI_UIS}" "" "${COMPONENT_LIBS}")
endif()
......@@ -110,7 +110,10 @@ namespace armarx
/// @brief Callback called when the config dialog is closed.
virtual void configured() override;
virtual QIcon getWidgetIcon() const override
{
return QIcon(":/robotunitplugin/icons/robot_unit_icon.svg");
}
// RobotUnitListener interface
public:
virtual void lVl1ControllerStatusChanged(const LVL1ControllerStatus& status, const Ice::Current&) override;
......
<RCC>
<qresource prefix="/robotunitplugin">
<file>icons/robot_unit_icon.svg</file>
</qresource>
</RCC>
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment