| 941 | } |
| 942 | |
| 943 | void MainWindow::addFileToPro(FileInterface* file) |
| 944 | { |
| 945 | if (m_project->isUntitled()) { |
| 946 | QString name(QFileInfo(file->name()).path()); |
| 947 | setCurrentFile(name + "/" + name.split('/').back() + ".g2g"); |
| 948 | } |
| 949 | m_project->addFile(file); |
| 950 | recentFiles.prependToRecentFiles(file->name()); |
| 951 | ui->graphicsView->zoomFit(); |
| 952 | } |
| 953 | |
| 954 | QString MainWindow::strippedName(const QString& fullFileName) |
| 955 | { |
nothing calls this directly
no test coverage detected