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

Method openComic

YACReader/main_window_viewer.cpp:1014–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012}
1013
1014void MainWindowViewer::openComic(QString pathFile)
1015{
1016 QFileInfo fi(pathFile);
1017 currentDirectory = fi.dir().absolutePath();
1018 currentComicPath = fi.absoluteFilePath();
1019 getSiblingComics(fi.absolutePath(), fi.fileName());
1020
1021 setWindowTitle("YACReader - " + fi.fileName());
1022
1023 enableActions();
1024 applySavedReaderMode();
1025
1026 viewer->open(pathFile);
1027 Configuration::getConfiguration().updateOpenRecentList(fi.absoluteFilePath());
1028 refreshRecentFilesActionList();
1029}
1030
1031void MainWindowViewer::openFolder()
1032{

Callers

nothing calls this directly

Calls 2

updateOpenRecentListMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected