forked from qt-creator/qt-creator
Core: Add override to models
Change-Id: I89de84e2de0dcce759170d124a214a8d4c004130 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -83,12 +83,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
int rowCount(const QModelIndex &parent) const
|
||||
int rowCount(const QModelIndex &parent) const override
|
||||
{
|
||||
return parent.isValid() ? 0 : m_themes.size();
|
||||
}
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const
|
||||
QVariant data(const QModelIndex &index, int role) const override
|
||||
{
|
||||
if (role == Qt::DisplayRole)
|
||||
return m_themes.at(index.row()).displayName();
|
||||
|
||||
Reference in New Issue
Block a user