MCPcopy Create free account
hub / github.com/YACReader/yacreader / sizeHint

Method sizeHint

custom_widgets/yacreader_table_view.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213QSize YACReaderRatingDelegate::sizeHint(const QStyleOptionViewItem &option,
214 const QModelIndex &index) const
215{
216 Q_UNUSED(option)
217 int rating = ((ComicItem *)index.internalPointer())->data(ComicModel::Rating).toInt();
218 StarRating starRating(rating);
219 return starRating.sizeHint();
220}
221
222QWidget *YACReaderRatingDelegate::createEditor(QWidget *parent,
223 const QStyleOptionViewItem &option,

Callers 1

starAtPositionMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected