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 1bc607be..f86c7ed7 100644
--- a/examples/charts/modeldata/customtablemodel.cpp
+++ b/examples/charts/modeldata/customtablemodel.cpp
@@ -88,7 +88,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));
}