summaryrefslogtreecommitdiffstats
path: root/examples/charts/modeldata/customtablemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/modeldata/customtablemodel.cpp')
-rw-r--r--examples/charts/modeldata/customtablemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/modeldata/customtablemodel.cpp b/examples/charts/modeldata/customtablemodel.cpp
index 98cd8c8c..e36a5d3d 100644
--- a/examples/charts/modeldata/customtablemodel.cpp
+++ b/examples/charts/modeldata/customtablemodel.cpp
@@ -86,7 +86,7 @@ QVariant CustomTableModel::data(const QModelIndex &index, int role) const
} else if (role == Qt::EditRole) {
return m_data[index.row()]->at(index.column());
} else if (role == Qt::BackgroundRole) {
- foreach (QRect rect, m_mapping) {
+ for (const QRect &rect : m_mapping) {
if (rect.contains(index.column(), index.row()))
return QColor(m_mapping.key(rect));
}