| 499 | } |
| 500 | |
| 501 | QStringList ComicModel::getPaths(const QString &_source) |
| 502 | { |
| 503 | QStringList paths; |
| 504 | QList<ComicItem *>::ConstIterator itr; |
| 505 | for (itr = _data.constBegin(); itr != _data.constEnd(); itr++) { |
| 506 | QString hash = (*itr)->data(ComicModel::Hash).toString(); |
| 507 | paths << LibraryPaths::coverPath(_source, hash); |
| 508 | } |
| 509 | |
| 510 | return paths; |
| 511 | } |
| 512 | |
| 513 | #define COMIC_MODEL_QUERY_FIELDS "ci.number,ci.title,c.fileName,ci.numPages,c.id,c.parentId,c.path,ci.hash,ci.read,ci.currentPage,ci.rating,ci.hasBeenOpened,ci.date,ci.added,ci.type,ci.lastTimeOpened,ci.series,ci.volume,ci.storyArc" |
| 514 |