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

Method setCurrentPartIndex

src/core/map.cpp:2062–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060}
2061
2062void Map::setCurrentPartIndex(std::size_t index)
2063{
2064 Q_ASSERT(index < parts.size());
2065
2066 MapPart* const old_part = parts[current_part_index];
2067 if (index != current_part_index)
2068 {
2069 current_part_index = index;
2070 emit currentMapPartIndexChanged(index);
2071 }
2072
2073 MapPart* const new_part = parts[current_part_index];
2074 if (new_part != old_part)
2075 {
2076 clearObjectSelection(true);
2077 emit currentMapPartChanged(new_part);
2078 }
2079}
2080
2081int Map::reassignObjectsToMapPart(std::vector<int>::const_iterator first, std::vector<int>::const_iterator last, std::size_t source, std::size_t destination)
2082{

Callers 4

importImplementationMethod · 0.80
updateMapStateMethod · 0.80
changeMapPartMethod · 0.80
mergeAllMapPartsMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected