| 2922 | } |
| 2923 | |
| 2924 | void MainWindow::showExecutionWindow(cpprofiler::ExecutionWindow& e) |
| 2925 | { |
| 2926 | e.setWindowFlags(Qt::Widget); |
| 2927 | e.setParent(this); |
| 2928 | for (int i = 0; i < ui->tabWidget->count(); i++) { |
| 2929 | if (ui->tabWidget->widget(i) == &e) { |
| 2930 | ui->tabWidget->setCurrentIndex(i); |
| 2931 | return; |
| 2932 | } |
| 2933 | } |
| 2934 | auto name = QString::fromStdString(e.execution().name()); |
| 2935 | ui->tabWidget->addTab(&e, name); |
| 2936 | ui->tabWidget->setCurrentIndex(ui->tabWidget->count()-1); |
| 2937 | } |
| 2938 | |
| 2939 | void MainWindow::showMergeWindow(cpprofiler::analysis::MergeWindow& m) |
| 2940 | { |
nothing calls this directly
no test coverage detected