| 2091 | } |
| 2092 | |
| 2093 | bool 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 | |
| 2107 | void MainWindow::openProject(const QString& fileName) |
| 2108 | { |
no test coverage detected