Permalink
Browse files

Fixes #276

  • Loading branch information...
1 parent 161669e commit dfdb9360709e449b4dbfef7c3fed74ec527c2d17 Daniel Kabel committed Mar 10, 2013
View
@@ -115,5 +115,7 @@
<file alias="extraFanarts/red">img/mediaStatus/extrafanarts_red.png</file>
<file alias="streamDetails/green">img/mediaStatus/streamdetails_green.png</file>
<file alias="streamDetails/red">img/mediaStatus/streamdetails_red.png</file>
+ <file alias="id/green">img/mediaStatus/id_green.png</file>
+ <file alias="id/red">img/mediaStatus/id_red.png</file>
</qresource>
</RCC>
View
@@ -144,6 +144,9 @@ QVariant MovieModel::data(const QModelIndex &index, int role) const
case MediaStatusExtraFanarts:
icon = (movie->hasExtraFanarts()) ? "extraFanarts/green" : "extraFanarts/red";
break;
+ case MediaStatusId:
+ icon = (movie->id().isEmpty()) ? "id/red" : "id/green";
+ break;
default:
break;
}
@@ -224,25 +227,28 @@ int MovieModel::mediaStatusToColumn(MediaStatusColumns column)
{
switch (column) {
case MediaStatusActors:
- return 7;
+ return 8;
break;
case MediaStatusExtraArts:
- return 4;
+ return 5;
break;
case MediaStatusExtraFanarts:
- return 3;
+ return 4;
break;
case MediaStatusFanart:
- return 2;
+ return 3;
break;
case MediaStatusPoster:
- return 1;
+ return 2;
break;
case MediaStatusStreamDetails:
- return 6;
+ return 7;
break;
case MediaStatusTrailer:
- return 5;
+ return 6;
+ break;
+ case MediaStatusId:
+ return 1;
break;
default:
return -1;
@@ -283,6 +289,9 @@ QString MovieModel::mediaStatusToText(MediaStatusColumns column)
case MediaStatusTrailer:
return tr("Trailer");
break;
+ case MediaStatusId:
+ return tr("IMDB ID");
+ break;
default:
return QString();
break;
View
@@ -299,6 +299,7 @@ struct ExtraFanart {
};
enum MediaStatusColumns {
+ MediaStatusId,
MediaStatusStreamDetails,
MediaStatusTrailer,
MediaStatusPoster,
@@ -308,7 +309,7 @@ enum MediaStatusColumns {
MediaStatusActors,
MediaStatusUnknown,
- MediaStatusFirst = MediaStatusStreamDetails,
+ MediaStatusFirst = MediaStatusId,
MediaStatusLast = MediaStatusActors
};
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dfdb936

Please sign in to comment.