diff --git a/common/cursors.cpp b/common/cursors.cpp index 9331eb2176..78f5723945 100644 --- a/common/cursors.cpp +++ b/common/cursors.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -213,6 +214,14 @@ static const std::vector standard_cursors = { { 32, 32 }, { 7, 10 }, }, + { + KICURSOR::COMPONENT, + nullptr, + nullptr, + cursor_component_xpm, + { 32, 32 }, + { 7, 10 }, + }, }; diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index 742809247f..1faeee1e7f 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -118,7 +118,7 @@ int SCH_DRAWING_TOOLS::PlaceComponent( const TOOL_EVENT& aEvent ) auto setCursor = [&]() { - m_frame->GetCanvas()->SetCurrentCursor( component ? KICURSOR::MOVING : KICURSOR::PENCIL ); + m_frame->GetCanvas()->SetCurrentCursor( component ? KICURSOR::MOVING : KICURSOR::COMPONENT ); }; // Set initial cursor diff --git a/include/cursors.h b/include/cursors.h index 38dee3742b..81a1718926 100644 --- a/include/cursors.h +++ b/include/cursors.h @@ -51,7 +51,8 @@ enum class KICURSOR ZOOM_IN, ZOOM_OUT, NET_LABEL, - GLOBAL_LABEL + GLOBAL_LABEL, + COMPONENT }; /**