forked from qt-creator/qt-creator
Git: Add override
Change-Id: Iae0779c1efa8b3b46cf504f7bda00d614a4a157e Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
aedfbd5710
commit
4eb2224f47
@@ -760,7 +760,7 @@ class ResetItemDelegate : public LogItemDelegate
|
||||
{
|
||||
public:
|
||||
ResetItemDelegate(LogChangeWidget *widget) : LogItemDelegate(widget) {}
|
||||
void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const
|
||||
void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const override
|
||||
{
|
||||
if (index.row() < currentRow())
|
||||
option->font.setStrikeOut(true);
|
||||
@@ -777,7 +777,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
bool hasIcon(int row) const
|
||||
bool hasIcon(int row) const override
|
||||
{
|
||||
return row <= currentRow();
|
||||
}
|
||||
|
Reference in New Issue
Block a user