| 1317 | } |
| 1318 | |
| 1319 | bool MainWindow::SavedState::operator ==(const MainWindow::SavedState &other) const |
| 1320 | { |
| 1321 | if( current_tab_name != other.current_tab_name || |
| 1322 | json_states.size() != other.json_states.size()) |
| 1323 | { |
| 1324 | return false; |
| 1325 | } |
| 1326 | for(auto& it: json_states ) |
| 1327 | { |
| 1328 | auto other_it = other.json_states.find(it.first); |
| 1329 | if( other_it == other.json_states.end() || |
| 1330 | it.second != other_it->second) |
| 1331 | { |
| 1332 | return false; |
| 1333 | } |
| 1334 | } |
| 1335 | if( view_area != other.view_area || |
| 1336 | view_transform != other.view_transform) |
| 1337 | { |
| 1338 | return false; |
| 1339 | } |
| 1340 | return true; |
| 1341 | } |
| 1342 | |
| 1343 | void MainWindow::onChangeNodesStatus(const QString& bt_name, |
| 1344 | const std::vector<std::pair<int, NodeStatus> > &node_status) |
nothing calls this directly
no outgoing calls
no test coverage detected