Gerrit: Properly sort timestamps in Gerrit dialog

Task-number: QTCREATORBUG-13602
Change-Id: Iba4b2d85d6b75752214b4f53684b9e90df9b1b69
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2015-02-04 18:29:30 +01:00
parent ee64a062b1
commit 6546a292c2
3 changed files with 15 additions and 2 deletions

View File

@@ -112,11 +112,14 @@ public:
enum CustomModelRoles {
FilterRole = Qt::UserRole + 1,
GerritChangeRole = Qt::UserRole + 2
GerritChangeRole = Qt::UserRole + 2,
SortRole = Qt::UserRole + 3
};
GerritModel(const QSharedPointer<GerritParameters> &, QObject *parent = 0);
~GerritModel();
QVariant data(const QModelIndex &index, int role) const;
GerritChangePtr change(const QModelIndex &index) const;
QString toHtml(const QModelIndex &index) const;