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

Method newComic

common/bookmarks.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void Bookmarks::newComic(const QString &path)
74{
75 QFileInfo f(path);
76 QString comicID = f.fileName().toLower() + QString::number(f.size());
77 clear();
78 BookmarksList::Bookmark b = list.get(comicID);
79 comicPath = comicID;
80 lastPageIndex = b.lastPage;
81 latestBookmarks = b.bookmarks;
82 for (int i = 0; i < latestBookmarks.count(); i++)
83 bookmarks.insert(latestBookmarks.at(i), QImage());
84 added = b.added;
85}
86
87void Bookmarks::clear()
88{

Callers

nothing calls this directly

Calls 3

toLowerMethod · 0.80
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected