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

Method open

YACReader/main_window_viewer.cpp:938–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938void MainWindowViewer::open()
939{
940 QFileDialog openDialog;
941#ifndef use_unarr
942 QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.7z *.cb7 *.arj *.cbt)");
943#elif (UNARR_API_VERSION < 110)
944 QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.cbt)");
945#else
946 QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.cbt *.7z *.cb7)");
947#endif
948 if (!pathFile.isEmpty()) {
949 openComicFromPath(pathFile);
950 }
951}
952
953void MainWindowViewer::open(QString path, ComicDB &comic, QList<ComicDB> &siblings)
954{

Callers 4

imageExtensionFunction · 0.45
openComicMethod · 0.45
openFolderFromPathMethod · 0.45
extractPagesMethod · 0.45

Calls 4

isEmptyMethod · 0.80
toStringMethod · 0.80
requestComicInfoMethod · 0.80
setFiltersMethod · 0.45

Tested by

no test coverage detected