mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
Implemented version list sorting.
Resolves MMC-8: https://jira.forkk.net/browse/MMC-8
This commit is contained in:
parent
055198303c
commit
857a4e4dbe
7 changed files with 90 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue