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

Method copyAndImportComicsToCurrentFolder

YACReaderLibrary/library_window.cpp:999–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999void LibraryWindow::copyAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics)
1000{
1001 QLOG_DEBUG() << "-copyAndImportComicsToCurrentFolder-";
1002 if (comics.size() > 0) {
1003 QString destFolderPath = currentFolderPath();
1004
1005 QModelIndex folderDestination = getCurrentFolderIndex();
1006
1007 QProgressDialog *progressDialog = newProgressDialog(tr("Copying comics..."), comics.size());
1008
1009 auto comicFilesManager = new ComicFilesManager();
1010 comicFilesManager->copyComicsTo(comics, destFolderPath, folderDestination);
1011
1012 processComicFiles(comicFilesManager, progressDialog);
1013 }
1014}
1015
1016void LibraryWindow::moveAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics)
1017{

Callers

nothing calls this directly

Calls 1

copyComicsToMethod · 0.80

Tested by

no test coverage detected