| 234 | } |
| 235 | |
| 236 | void YACReaderRatingDelegate::setEditorData(QWidget *editor, |
| 237 | const QModelIndex &index) const |
| 238 | { |
| 239 | int rating = ((ComicItem *)index.internalPointer())->data(ComicModel::Rating).toInt(); |
| 240 | |
| 241 | StarRating starRating(rating); |
| 242 | |
| 243 | StarEditor *starEditor = qobject_cast<StarEditor *>(editor); |
| 244 | starEditor->setStarRating(starRating); |
| 245 | } |
| 246 | |
| 247 | void YACReaderRatingDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, |
| 248 | const QModelIndex &index) const |
nothing calls this directly
no test coverage detected