MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / addFileToPro

Method addFileToPro

GGEasy/mainwindow.cpp:943–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943void 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
954QString MainWindow::strippedName(const QString& fullFileName)
955{

Callers

nothing calls this directly

Calls 6

isUntitledMethod · 0.80
pathMethod · 0.80
prependToRecentFilesMethod · 0.80
zoomFitMethod · 0.80
nameMethod · 0.45
addFileMethod · 0.45

Tested by

no test coverage detected