MCPcopy Create free account
hub / github.com/YACReader/yacreader / moveAndImportComicsToFolder

Method moveAndImportComicsToFolder

YACReaderLibrary/library_window.cpp:1052–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052void LibraryWindow::moveAndImportComicsToFolder(const QList<QPair<QString, QString>> &comics, const QModelIndex &miFolder)
1053{
1054 QLOG_DEBUG() << "-moveAndImportComicsToFolder-";
1055 if (comics.size() > 0) {
1056 QModelIndex folderDestination = foldersModelProxy->mapToSource(miFolder);
1057
1058 QString destFolderPath = QDir::cleanPath(currentPath() + foldersModel->getFolderPath(folderDestination));
1059
1060 QLOG_DEBUG() << "Moving to " << destFolderPath;
1061
1062 QProgressDialog *progressDialog = newProgressDialog(tr("Moving comics..."), comics.size());
1063
1064 auto comicFilesManager = new ComicFilesManager();
1065 comicFilesManager->moveComicsTo(comics, destFolderPath, folderDestination);
1066
1067 processComicFiles(comicFilesManager, progressDialog);
1068 }
1069}
1070
1071void LibraryWindow::processComicFiles(ComicFilesManager *comicFilesManager, QProgressDialog *progressDialog)
1072{

Callers

nothing calls this directly

Calls 2

getFolderPathMethod · 0.80
moveComicsToMethod · 0.80

Tested by

no test coverage detected