| 71 | } |
| 72 | |
| 73 | void 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 | |
| 87 | void Bookmarks::clear() |
| 88 | { |