| 74 | } |
| 75 | |
| 76 | void CutoutTool::initImpl() |
| 77 | { |
| 78 | // Take cutout shape object out of the map |
| 79 | Q_ASSERT(map()->getNumSelectedObjects() == 1); |
| 80 | cutout_object = map()->getFirstSelectedObject()->asPath(); |
| 81 | |
| 82 | startEditing(cutout_object); |
| 83 | cutout_object->setSymbol(Map::getCoveringCombinedLine(), true); |
| 84 | updatePreviewObjects(); |
| 85 | |
| 86 | cutout_object_index = map()->getCurrentPart()->findObjectIndex(cutout_object); |
| 87 | map()->removeObjectFromSelection(cutout_object, true); |
| 88 | map()->releaseObject(cutout_object); |
| 89 | } |
| 90 | |
| 91 | void CutoutTool::drawImpl(QPainter* painter, MapWidget* widget) |
| 92 | { |
nothing calls this directly
no test coverage detected