~rpadovani/reminders-app/1392197

« back to all changes in this revision

Viewing changes to src/plugin/Evernote/notes.cpp

  • Committer: Tarmac
  • Author(s): Michael Zanetti, Riccardo Padovani, Riccardo Padovani
  • Date: 2014-10-31 11:16:47 UTC
  • mfrom: (278.4.7 updatedRole)
  • Revision ID: tarmac-20141031111647-e9hfomtnspj4lv7z
Fixed bug 1378014 - Notes should be sorted by modification date by default
Fixed bug 1380255 - Add day of the month to the notes preview. Fixes: https://bugs.launchpad.net/bugs/1378014, https://bugs.launchpad.net/bugs/1380255.

Approved by Michael Zanetti, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    connect(NotesStore::instance(), &NotesStore::errorChanged, this, &Notes::errorChanged);
32
32
    connect(NotesStore::instance(), &NotesStore::countChanged, this, &Notes::countChanged);
33
33
    setSourceModel(NotesStore::instance());
34
 
    setSortRole(NotesStore::RoleCreated);
 
34
    setSortRole(NotesStore::RoleUpdated);
35
35
    sort(0, Qt::DescendingOrder);
36
36
}
37
37
 
79
79
            setSortRole(NotesStore::RoleReminderSorting);
80
80
            sort(0, Qt::AscendingOrder);
81
81
        } else {
82
 
            setSortRole(NotesStore::RoleCreated);
 
82
            setSortRole(NotesStore::RoleUpdated);
83
83
            sort(0, Qt::DescendingOrder);
84
84
        }
85
85