first version saving some info from comic vine

This commit is contained in:
Luis Ángel San Martín
2013-11-03 23:30:11 +01:00
parent 71f8c56753
commit 9c4ecd72af
13 changed files with 174 additions and 11 deletions

View File

@ -149,7 +149,17 @@ QModelIndex VolumeComicsModel::index(int row, int column, const QModelIndex &par
QString VolumeComicsModel::getComicId(const QModelIndex &index) const
{
return _data[index.row()][ID];
int row = index.row();
if(row >= _data.count())
return "";
return _data[row][ID];
}
QString VolumeComicsModel::getComicId(int row) const
{
if(row >= _data.count())
return "";
return _data[row][ID];
}
QString VolumeComicsModel::getCoverURL(const QModelIndex &index) const