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

Method onTabSetMainTree

bt_editor/mainwindow.cpp:1449–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1447
1448
1449void MainWindow::onTabSetMainTree(int tab_index)
1450{
1451 for (int i=0; i<ui->tabWidget->count(); i++ )
1452 {
1453 if( i == tab_index )
1454 {
1455 ui->tabWidget->tabBar()->setTabIcon(i, QIcon(":/icons/svg/star.svg") );
1456 _main_tree = ui->tabWidget->tabBar()->tabText(i);
1457 }
1458 else{
1459 ui->tabWidget->tabBar()->setTabIcon( i, QIcon());
1460 }
1461 }
1462}
1463
1464
1465void MainWindow::clearTreeModels()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected