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

Method moveAndImportComicsToCurrentFolder

YACReaderLibrary/library_window.cpp:1016–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016void LibraryWindow::moveAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics)
1017{
1018 QLOG_DEBUG() << "-moveAndImportComicsToCurrentFolder-";
1019 if (comics.size() > 0) {
1020 QString destFolderPath = currentFolderPath();
1021
1022 QModelIndex folderDestination = getCurrentFolderIndex();
1023
1024 QProgressDialog *progressDialog = newProgressDialog(tr("Moving comics..."), comics.size());
1025
1026 auto comicFilesManager = new ComicFilesManager();
1027 comicFilesManager->moveComicsTo(comics, destFolderPath, folderDestination);
1028
1029 processComicFiles(comicFilesManager, progressDialog);
1030 }
1031}
1032
1033void LibraryWindow::copyAndImportComicsToFolder(const QList<QPair<QString, QString>> &comics, const QModelIndex &miFolder)
1034{

Callers

nothing calls this directly

Calls 1

moveComicsToMethod · 0.80

Tested by

no test coverage detected