From feba5f04f1c4d5169c4fa0947be2b619e630a114 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 9 Feb 2023 16:50:56 +0200 Subject: [PATCH] =?UTF-8?q?No=20member=20named=20=E2=80=98insertMulti?= =?UTF-8?q?=E2=80=99=20in=20QMap.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before Qt 5.15, QMap distinguished between maps and multi-maps by insert and insertMulti. Qt 5.15 introduces a new class QMultiMap, which inherits from QMap. --- src/libs/vlayout/vbank.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/vlayout/vbank.cpp b/src/libs/vlayout/vbank.cpp index bc3b63815..c0bd0d5ad 100644 --- a/src/libs/vlayout/vbank.cpp +++ b/src/libs/vlayout/vbank.cpp @@ -580,7 +580,11 @@ int VBank::GetNextTwoGroups(uint priority) const int VBank::GetNextDescGroup(uint priority) const { auto descGroup = desc.value(priority); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + QMultiMapIterator i(descGroup); +#else QMapIterator i(descGroup); +#endif i.toBack(); if (i.hasPrevious()) {