MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / EditTool

Method EditTool

src/tools/edit_tool.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50namespace OpenOrienteering {
51
52EditTool::EditTool(MapEditorController* editor, MapEditorTool::Type type, QAction* tool_action)
53 : MapEditorToolBase { QCursor(QPixmap(QString::fromLatin1(":/images/cursor-hollow.png")), 1, 1), type, editor, tool_action }
54 , object_selector { new ObjectSelector(map()) }
55{
56 connect(editor->getMainWidget()->getMapView(),
57 SIGNAL(viewChanged(OpenOrienteering::MapView::ChangeFlags)),
58 this, SLOT(applyViewChanges(OpenOrienteering::MapView::ChangeFlags)));
59}
60
61
62EditTool::~EditTool() = default;

Callers

nothing calls this directly

Calls 4

QPixmapClass · 0.85
getMapViewMethod · 0.80
getMainWidgetMethod · 0.80
QCursorClass · 0.70

Tested by

no test coverage detected