mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Annotate overridden methods
This commit is contained in:
@ -38,7 +38,7 @@ public:
|
||||
virtual ~ListviewDelegate() {}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
const QModelIndex &index) const override
|
||||
{
|
||||
painter->save();
|
||||
|
||||
@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
const QModelIndex &index) const override
|
||||
{
|
||||
QFontMetrics fm(option.font);
|
||||
QString text = qvariant_cast<QString>(index.data(Qt::DisplayRole));
|
||||
|
Reference in New Issue
Block a user