MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / newFileName

Method newFileName

tools/screenshot.cpp:458–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458const 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
479void Screenshot::selectedArea()
480{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected