@@ -200,7 +200,7 @@ void LauncherModel::refresh()
200 Q_FOREACH (LauncherItem* item, m_list) {
200 Q_FOREACH (LauncherItem* item, m_list) {
201 bool found = false;
201 bool found = false;
202 Q_FOREACH(const QVariant &asItem, items) {
202 Q_FOREACH(const QVariant &asItem, items) {
203− QMap<QString, QVariant> cachedMap = asItem.toMap();
203+ QVariantMap cachedMap = asItem.toMap();
204 if (cachedMap.value("id").toString() == item->appId()) {
204 if (cachedMap.value("id").toString() == item->appId()) {
205 // Only keep and update it if we either show unpinned or it is pinned
205 // Only keep and update it if we either show unpinned or it is pinned
206 if (!m_onlyPinned || cachedMap.value("pinned").toBool()) {
206 if (!m_onlyPinned || cachedMap.value("pinned").toBool()) {
@@ -213,11 +213,11 @@ void LauncherModel::refresh()
213 int idx = m_list.indexOf(item);
213 int idx = m_list.indexOf(item);
214 Q_EMIT dataChanged(index(idx),
214 Q_EMIT dataChanged(index(idx),
215 index(idx),
215 index(idx),
216− QVector<int>() << RoleName
216+ {RoleName,
217− << RoleIcon
217+ RoleIcon,
218− << RoleCount
218+ RoleCount,
219− << RoleCountVisible
219+ RoleCountVisible,
220− << RoleProgress);
220+ RoleProgress});
@@ -255,7 +255,7 @@ void LauncherModel::refresh()
257 if (itemIndex == -1) {
257 if (itemIndex == -1) {
258− QMap<QString, QVariant> chachedMap = entry.toMap();
258+ QVariantMap chachedMap = entry.toMap();
259 // Need to add it. Just add it into the addedIndex to keep same ordering as the list in AS.
259 // Need to add it. Just add it into the addedIndex to keep same ordering as the list in AS.
260 LauncherItem *item = new LauncherItem(chachedMap.value("id").toString(),
260 LauncherItem *item = new LauncherItem(chachedMap.value("id").toString(),
261 chachedMap.value("name").toString(),
261 chachedMap.value("name").toString(),