MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / showExecutionWindow

Method showExecutionWindow

MiniZincIDE/mainwindow.cpp:2924–2937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2922}
2923
2924void 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
2939void MainWindow::showMergeWindow(cpprofiler::analysis::MergeWindow& m)
2940{

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
setCurrentIndexMethod · 0.80
widgetMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected