@@ -200,7 +200,7 @@ void LauncherModel::refresh()
200200 Q_FOREACH (LauncherItem* item, m_list) {
201201 bool found = false;
202202 Q_FOREACH(const QVariant &asItem, items) {
203− QMap<QString, QVariant> cachedMap = asItem.toMap();
203+ QVariantMap cachedMap = asItem.toMap();
204204 if (cachedMap.value("id").toString() == item->appId()) {
205205 // Only keep and update it if we either show unpinned or it is pinned
206206 if (!m_onlyPinned || cachedMap.value("pinned").toBool()) {
@@ -213,11 +213,11 @@ void LauncherModel::refresh()
213213 int idx = m_list.indexOf(item);
214214 Q_EMIT dataChanged(index(idx),
215215 index(idx),
216− QVector<int>() << RoleName
217− << RoleIcon
218− << RoleCount
219− << RoleCountVisible
220− << RoleProgress);
216+ {RoleName,
217+ RoleIcon,
218+ RoleCount,
219+ RoleCountVisible,
220+ RoleProgress});
221221 }
222222 break;
223223 }
@@ -255,7 +255,7 @@ void LauncherModel::refresh()
255255 }
256256
257257 if (itemIndex == -1) {
258− QMap<QString, QVariant> chachedMap = entry.toMap();
258+ QVariantMap chachedMap = entry.toMap();
259259 // Need to add it. Just add it into the addedIndex to keep same ordering as the list in AS.
260260 LauncherItem *item = new LauncherItem(chachedMap.value("id").toString(),
261261 chachedMap.value("name").toString(),