mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Allow users to filter out MCNostalgia and Snapshots from the version list.
Resolves JIRA issue MMC-9: https://jira.forkk.net/browse/MMC-9
This commit is contained in:
parent
857a4e4dbe
commit
74133bb172
6 changed files with 72 additions and 22 deletions
|
|
@ -39,22 +39,6 @@ const InstVersion *InstVersionList::getLatestStable()
|
|||
return at(0);
|
||||
}
|
||||
|
||||
// Column Enum
|
||||
enum VListColumns
|
||||
{
|
||||
// First column - Name
|
||||
NameColumn = 0,
|
||||
|
||||
// Second column - Type
|
||||
TypeColumn,
|
||||
|
||||
// Third column - Timestamp
|
||||
TimeColumn,
|
||||
|
||||
// Column count
|
||||
ColCount
|
||||
};
|
||||
|
||||
QVariant InstVersionList::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
|
|
@ -141,5 +125,5 @@ int InstVersionList::rowCount(const QModelIndex &parent) const
|
|||
|
||||
int InstVersionList::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
return ColCount;
|
||||
return 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue