Commit 0d80d3e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QMultiMap

parent d3abdf2f
...@@ -327,7 +327,7 @@ void PlayGround::registerPlayGrounds() ...@@ -327,7 +327,7 @@ void PlayGround::registerPlayGrounds()
} }
} }
QMap<QString, QPair<QString, QPixmap>> sortedByName; QMultiMap<QString, QPair<QString, QPixmap>> sortedByName;
foreach(const QString &theme, list) foreach(const QString &theme, list)
{ {
...@@ -344,7 +344,7 @@ void PlayGround::registerPlayGrounds() ...@@ -344,7 +344,7 @@ void PlayGround::registerPlayGrounds()
QPixmap pixmap(200,100); QPixmap pixmap(200,100);
pixmap.fill(Qt::transparent); pixmap.fill(Qt::transparent);
playGroundPixmap(gameboard,pixmap); playGroundPixmap(gameboard,pixmap);
sortedByName.insertMulti(cg.readEntry("Name"), QPair<QString, QPixmap>(theme, pixmap)); sortedByName.insert(cg.readEntry("Name"), QPair<QString, QPixmap>(theme, pixmap));
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment