Convert iconCount() and expiredIconIndex() to constants.

This commit is contained in:
Felix Geyer 2012-06-29 15:22:43 +02:00
parent e144f7c85a
commit baa5a74ba0
7 changed files with 19 additions and 26 deletions

View file

@ -132,7 +132,7 @@ QVariant GroupModel::data(const QModelIndex& index, int role) const
}
else if (role == Qt::DecorationRole) {
if (group->isExpired()) {
return databaseIcons()->iconPixmap(databaseIcons()->expiredIconIndex());
return databaseIcons()->iconPixmap(DatabaseIcons::ExpiredIconIndex);
}
else {
return group->iconPixmap();