diff options
author | Andrew <forkk@forkk.net> | 2013-05-03 20:14:38 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-05-03 20:14:38 -0500 |
commit | 857a4e4dbed88b647619c213d731dc460d034820 (patch) | |
tree | ddff2ab3d6af3fb049b1931cd8b27cbedd7b6ee3 /libmultimc/src/instversionlist.cpp | |
parent | 055198303c7bf15f456687838c37650871596946 (diff) | |
download | MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.gz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.lz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.xz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.zip |
Implemented version list sorting.
Resolves MMC-8:
https://jira.forkk.net/browse/MMC-8
Diffstat (limited to 'libmultimc/src/instversionlist.cpp')
-rw-r--r-- | libmultimc/src/instversionlist.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libmultimc/src/instversionlist.cpp b/libmultimc/src/instversionlist.cpp index 85734e48..7d1bfdb7 100644 --- a/libmultimc/src/instversionlist.cpp +++ b/libmultimc/src/instversionlist.cpp @@ -48,6 +48,9 @@ enum VListColumns // Second column - Type TypeColumn, + // Third column - Timestamp + TimeColumn, + // Column count ColCount }; @@ -74,6 +77,9 @@ QVariant InstVersionList::data(const QModelIndex &index, int role) const case TypeColumn: return version->typeName(); + case TimeColumn: + return version->timestamp(); + default: return QVariant(); } @@ -101,6 +107,9 @@ QVariant InstVersionList::headerData(int section, Qt::Orientation orientation, i case TypeColumn: return "Type"; + + case TimeColumn: + return "Time"; default: return QVariant(); |