MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / on_tabWidget_currentChanged

Method on_tabWidget_currentChanged

bt_editor/mainwindow.cpp:1301–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299}
1300
1301void MainWindow::on_tabWidget_currentChanged(int index)
1302{
1303 if( ui->tabWidget->count() == 0 )
1304 {
1305 return;
1306 }
1307 QString tab_name = ui->tabWidget->tabText(index);
1308 auto tab = getTabByName(tab_name);
1309 if( tab )
1310 {
1311 const QSignalBlocker blocker( tab );
1312 tab->nodeReorder();
1313 _current_state.current_tab_name = ui->tabWidget->tabText( index );
1314 refreshExpandedSubtrees();
1315 tab->zoomHomeView();
1316 }
1317}
1318
1319bool MainWindow::SavedState::operator ==(const MainWindow::SavedState &other) const
1320{

Callers

nothing calls this directly

Calls 2

nodeReorderMethod · 0.80
zoomHomeViewMethod · 0.80

Tested by

no test coverage detected