~mzanetti/unity8/fix-left-edge-on-spread

« back to all changes in this revision

Viewing changes to plugins/Dash/horizontaljournal.cpp

  • Committer: Michael Zanetti
  • Date: 2015-01-12 11:21:17 UTC
  • mfrom: (1459.1.85 unity8)
  • Revision ID: michael.zanetti@canonical.com-20150112112117-0x9srs9dx0ndp60g
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    }
185
185
}
186
186
 
 
187
#if (QT_VERSION < QT_VERSION_CHECK(5, 4, 0))
187
188
void HorizontalJournal::processModelRemoves(const QVector<QQmlChangeSet::Remove> &removes)
 
189
#else
 
190
void HorizontalJournal::processModelRemoves(const QVector<QQmlChangeSet::Change> &removes)
 
191
#endif
188
192
{
189
 
    Q_FOREACH(const QQmlChangeSet::Remove &remove, removes) {
 
193
    Q_FOREACH(const QQmlChangeSet::Change &remove, removes) {
190
194
        for (int i = remove.count - 1; i >= 0; --i) {
191
195
            const int indexToRemove = remove.index + i;
192
196
            // We only support removing from the end so