| 2060 | } |
| 2061 | |
| 2062 | void 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 | |
| 2081 | int Map::reassignObjectsToMapPart(std::vector<int>::const_iterator first, std::vector<int>::const_iterator last, std::size_t source, std::size_t destination) |
| 2082 | { |
no test coverage detected