Core: Add override to models

Change-Id: I89de84e2de0dcce759170d124a214a8d4c004130
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-05-17 10:49:34 +02:00
committed by Eike Ziller
parent 3109145526
commit 3dd6bf2b96
8 changed files with 49 additions and 49 deletions

View File

@@ -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();