added comicVineID field to the data base, if the comic information has been scraped the properties dialog shows a link to the Comic Vine page with the comic information

This commit is contained in:
Luis Ángel San Martín
2014-06-05 18:50:07 +02:00
parent 498f71afb2
commit d6ace428ad
9 changed files with 82 additions and 22 deletions

View File

@ -212,7 +212,10 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
"brightness = :brightness,"
"contrast = :contrast, "
"gamma = :gamma,"
"rating = :rating"
"rating = :rating,"
//new 7.1 fields
"comicVineID = :comicVineID"
//--
" WHERE id = :id ");
@ -263,6 +266,8 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
updateComicInfo.bindValue(":gamma", comicInfo->gamma);
updateComicInfo.bindValue(":rating", comicInfo->rating);
updateComicInfo.bindValue(":comicVineID", comicInfo->comicVineID);
updateComicInfo.exec();
}
@ -641,6 +646,8 @@ ComicInfo DBHelper::loadComicInfo(QString hash, QSqlDatabase & db)
comicInfo.characters = record.value("characters");
comicInfo.notes = record.value("notes");
comicInfo.comicVineID = record.value("comicVineID");
comicInfo.existOnDb = true;
}
else