~macslow/unity8/use-set-progress-api

« back to all changes in this revision

Viewing changes to plugins/Greeter/Unity/Launcher/launchermodelas.cpp

  • Committer: Mirco Müller
  • Date: 2015-07-07 15:32:30 UTC
  • Revision ID: mirco.mueller@ubuntu.com-20150707153230-vafqk4mdd0k4n5kw
Make sure all changes are carried with the dataChanged signal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
                    item->setCountVisible(cachedMap.value("countVisible").toBool());
212
212
                    item->setProgress(cachedMap.value("progress").toInt());
213
213
                    int idx = m_list.indexOf(item);
214
 
                    Q_EMIT dataChanged(index(idx), index(idx), QVector<int>() << RoleName << RoleIcon);
 
214
                    Q_EMIT dataChanged(index(idx),
 
215
                                       index(idx),
 
216
                                       QVector<int>() << RoleName
 
217
                                                      << RoleIcon
 
218
                                                      << RoleCount
 
219
                                                      << RoleCountVisible
 
220
                                                      << RoleProgress);
215
221
                }
216
222
                break;
217
223
            }