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

Method showMergeWindow

MiniZincIDE/mainwindow.cpp:2939–2952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2937}
2938
2939void MainWindow::showMergeWindow(cpprofiler::analysis::MergeWindow& m)
2940{
2941 m.setWindowFlags(Qt::Widget);
2942 m.setParent(this);
2943 for (int i = 0; i < ui->tabWidget->count(); i++) {
2944 if (ui->tabWidget->widget(i) == &m) {
2945 ui->tabWidget->setCurrentIndex(i);
2946 return;
2947 }
2948 }
2949 auto name = QString::fromStdString("Merge result");
2950 ui->tabWidget->addTab(&m, name);
2951 ui->tabWidget->setCurrentIndex(ui->tabWidget->count()-1);
2952}
2953
2954void MainWindow::on_cpprofiler_dockWidget_visibilityChanged(bool visible)
2955{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
setCurrentIndexMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected