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

Method renameFileNameOnPrefixSuffix

src/mainwindowimpl.cpp:790–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790QString MainWindowImpl::renameFileNameOnPrefixSuffix(QString oldFileName)
791{
792 QString t_renamingString = lineRename->text();
793
794 QFileInfo fi(oldFileName);
795 QString newFileName = QString("%1.%2")
796 .arg(t_renamingString.replace("#", fi.completeBaseName()))
797 .arg(fi.suffix());
798
799 return QString("%1/%2").arg(fi.path()).arg(newFileName);
800}
801
802QString MainWindowImpl::renameFileNameOnProgressiveN(QString oldFileName)
803{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected