No member named ‘insertMulti’ in QMap.

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.
This commit is contained in:
Roman Telezhynskyi 2023-02-09 16:50:56 +02:00
parent 88a793319e
commit feba5f04f1

View File

@ -580,7 +580,11 @@ int VBank::GetNextTwoGroups(uint priority) const
int VBank::GetNextDescGroup(uint priority) const int VBank::GetNextDescGroup(uint priority) const
{ {
auto descGroup = desc.value(priority); auto descGroup = desc.value(priority);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QMultiMapIterator<qint64, int> i(descGroup);
#else
QMapIterator<qint64, int> i(descGroup); QMapIterator<qint64, int> i(descGroup);
#endif
i.toBack(); i.toBack();
if (i.hasPrevious()) if (i.hasPrevious())
{ {