summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp')
-rw-r--r--tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp b/tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp
index 007f12516f..157ee7a152 100644
--- a/tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp
+++ b/tests/benchmarks/widgets/itemviews/qtableview/tst_qtableview.cpp
@@ -45,11 +45,11 @@ public:
row_count(rows),
column_count(columns) {}
- int rowCount(const QModelIndex& = QModelIndex()) const { return row_count; }
- int columnCount(const QModelIndex& = QModelIndex()) const { return column_count; }
+ int rowCount(const QModelIndex & = QModelIndex()) const override { return row_count; }
+ int columnCount(const QModelIndex & = QModelIndex()) const override { return column_count; }
bool isEditable(const QModelIndex &) const { return true; }
- QVariant data(const QModelIndex &idx, int role) const
+ QVariant data(const QModelIndex &idx, int role) const override
{
if (!idx.isValid() || idx.row() >= row_count || idx.column() >= column_count) {
qWarning() << "Invalid modelIndex [%d,%d,%p]" << idx;
@@ -62,7 +62,7 @@ public:
return QVariant();
}
- bool insertRows(int start, int count, const QModelIndex &parent = QModelIndex())
+ bool insertRows(int start, int count, const QModelIndex &parent = QModelIndex()) override
{
if (start < 0 || start > row_count)
return false;
@@ -73,7 +73,7 @@ public:
return true;
}
- bool removeRows(int start, int count, const QModelIndex &parent = QModelIndex())
+ bool removeRows(int start, int count, const QModelIndex &parent = QModelIndex()) override
{
if (start < 0 || start >= row_count || row_count < count)
return false;
@@ -84,7 +84,7 @@ public:
return true;
}
- bool insertColumns(int start, int count, const QModelIndex &parent = QModelIndex())
+ bool insertColumns(int start, int count, const QModelIndex &parent = QModelIndex()) override
{
if (start < 0 || start > column_count)
return false;
@@ -95,7 +95,7 @@ public:
return true;
}
- bool removeColumns(int start, int count, const QModelIndex &parent = QModelIndex())
+ bool removeColumns(int start, int count, const QModelIndex &parent = QModelIndex()) override
{
if (start < 0 || start >= column_count || column_count < count)
return false;