| 456 | } |
| 457 | |
| 458 | const QString Screenshot::newFileName() const |
| 459 | { |
| 460 | if (!mOptions.directory.exists()) { |
| 461 | mOptions.directory.mkpath(mOptions.directory.path()); |
| 462 | } |
| 463 | |
| 464 | QString naming = Screenshot::getName(mOptions.namingOptions, mOptions.prefix, mOptions.directory); |
| 465 | QString path = QDir::toNativeSeparators(mOptions.directory.path()); |
| 466 | |
| 467 | // Cleanup |
| 468 | if (path.at(path.size() - 1) != QDir::separator() && !path.isEmpty()) { |
| 469 | path.append(QDir::separator()); |
| 470 | } |
| 471 | |
| 472 | QString fileName; |
| 473 | fileName.append(path); |
| 474 | fileName.append(naming); |
| 475 | |
| 476 | return fileName; |
| 477 | } |
| 478 | |
| 479 | void Screenshot::selectedArea() |
| 480 | { |
nothing calls this directly
no outgoing calls
no test coverage detected