MCPcopy Create free account
hub / github.com/Faster3ck/Converseen / renameFileNameOnProgressiveN

Method renameFileNameOnProgressiveN

src/mainwindowimpl.cpp:802–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802QString MainWindowImpl::renameFileNameOnProgressiveN(QString oldFileName)
803{
804 QString t_renamingString = lineRename->text();
805
806 QFileInfo fi(oldFileName); // For the output directory
807 QString newFileName = QString("%1.%2")
808 .arg(t_renamingString.replace("#", QString::number(m_progressiveNren)))
809 .arg(fi.suffix());
810
811 m_progressiveNren++; // the key of progressive number renaming (set to start when the conversion in starded)
812
813 return QString("%1/%2").arg(fi.path()).arg(newFileName);
814}
815
816void MainWindowImpl::loadFormats()
817{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected