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

Method copyAndImportComicsToFolder

YACReaderLibrary/library_window.cpp:1033–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033void LibraryWindow::copyAndImportComicsToFolder(const QList<QPair<QString, QString>> &comics, const QModelIndex &miFolder)
1034{
1035 QLOG_DEBUG() << "-copyAndImportComicsToFolder-";
1036 if (comics.size() > 0) {
1037 QModelIndex folderDestination = foldersModelProxy->mapToSource(miFolder);
1038
1039 QString destFolderPath = QDir::cleanPath(currentPath() + foldersModel->getFolderPath(folderDestination));
1040
1041 QLOG_DEBUG() << "Coping to " << destFolderPath;
1042
1043 QProgressDialog *progressDialog = newProgressDialog(tr("Copying comics..."), comics.size());
1044
1045 auto comicFilesManager = new ComicFilesManager();
1046 comicFilesManager->copyComicsTo(comics, destFolderPath, folderDestination);
1047
1048 processComicFiles(comicFilesManager, progressDialog);
1049 }
1050}
1051
1052void LibraryWindow::moveAndImportComicsToFolder(const QList<QPair<QString, QString>> &comics, const QModelIndex &miFolder)
1053{

Callers

nothing calls this directly

Calls 2

getFolderPathMethod · 0.80
copyComicsToMethod · 0.80

Tested by

no test coverage detected