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

Method isEmptyProject

MiniZincIDE/mainwindow.cpp:2093–2105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2091}
2092
2093bool MainWindow::isEmptyProject(void)
2094{
2095 if (getProject().hasProjectFile() || !getProject().files().empty()) {
2096 return false;
2097 }
2098 for (int i = 0; i < ui->tabWidget->count(); i++) {
2099 CodeEditor* ce = qobject_cast<CodeEditor*>(ui->tabWidget->widget(i));
2100 if (ce && (!ce->filepath.isEmpty() || ce->document()->isModified())) {
2101 return false;
2102 }
2103 }
2104 return true;
2105}
2106
2107void MainWindow::openProject(const QString& fileName)
2108{

Callers 1

eventMethod · 0.80

Calls 5

hasProjectFileMethod · 0.80
filesMethod · 0.80
countMethod · 0.80
isModifiedMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected