TaskModel: Sort task by id

Makes it easier to later find the task again, and does actually not
change the order in the normal case

Change-Id: I2f36f2e7a6ab52c06e35be22820438a809ecb012
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-02-22 14:13:53 +01:00
parent bc193874ef
commit 0f853bb498
2 changed files with 10 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ private:
};
QHash<Core::Id,CategoryData> m_categories; // category id to data
QList<Task> m_tasks; // all tasks (in order of insertion)
QList<Task> m_tasks; // all tasks (in order of id)
QHash<QString,bool> m_fileNotFound;
int m_maxSizeOfFileName;