summaryrefslogtreecommitdiffstats
path: root/examples/charts/modeldata/customtablemodel.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-07-28 16:13:00 +0100
committerMichal Klocek <michal.klocek@qt.io>2020-08-14 15:17:01 +0200
commit8cd7292c2b30565a2d498a146436fc8b897ac975 (patch)
treeac4bb90c959aec35626d6017ed84c09956acd6db /examples/charts/modeldata/customtablemodel.cpp
parenta80964df897baba4280c1f68d4832f1ea493acfa (diff)
Fix removed calls to insertMulti
Use QMultiMap, QMulitHash instead. Change-Id: I0782aa189a4465619757cb8204189bda888d641a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
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 dfa92944..a428cbbd 100644
--- a/examples/charts/modeldata/customtablemodel.cpp
+++ b/examples/charts/modeldata/customtablemodel.cpp
@@ -113,5 +113,5 @@ Qt::ItemFlags CustomTableModel::flags(const QModelIndex &index) const
void CustomTableModel::addMapping(QString color, QRect area)
{
- m_mapping.insertMulti(color, area);
+ m_mapping.insert(color, area);
}