| 429 | } |
| 430 | |
| 431 | void Project::projectFile(const QString& fileName) |
| 432 | { |
| 433 | QStringList files = entries.keys(); |
| 434 | clear(); |
| 435 | if (fileName.isEmpty()) { |
| 436 | rootItem->setText("Untitled Project"); |
| 437 | rootItem->setData("Untitled Project", Role::OriginalLabel); |
| 438 | projFile = ""; |
| 439 | } else { |
| 440 | QFileInfo fi(fileName); |
| 441 | projFile = fi.absoluteFilePath(); |
| 442 | rootItem->setText(fi.fileName()); |
| 443 | rootItem->setData(fi.fileName(), Role::OriginalLabel); |
| 444 | } |
| 445 | add(files); |
| 446 | } |
| 447 | |
| 448 | QDir Project::rootDir() |
| 449 | { |
no outgoing calls
no test coverage detected