| 360 | } |
| 361 | |
| 362 | QString pseudoHash(const QFileInfo &fileInfo) |
| 363 | { |
| 364 | QCryptographicHash crypto(QCryptographicHash::Sha1); |
| 365 | QFile file(fileInfo.absoluteFilePath()); |
| 366 | file.open(QFile::ReadOnly); |
| 367 | crypto.addData(file.read(524288)); |
| 368 | file.close(); |
| 369 | // hash Sha1 del primer 0.5MB + filesize |
| 370 | return QString(crypto.result().toHex().constData()) + QString::number(fileInfo.size()); |
| 371 | } |
| 372 | |
| 373 | void LibraryCreator::insertComic(const QString &relativePath, const QFileInfo &fileInfo) |
| 374 | { |
no test coverage detected