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:
@ -46,6 +46,18 @@ public:
|
||||
VersionPointerRole = 0x34B1CB48
|
||||
};
|
||||
|
||||
enum VListColumns
|
||||
{
|
||||
// First column - Name
|
||||
NameColumn = 0,
|
||||
|
||||
// Second column - Type
|
||||
TypeColumn,
|
||||
|
||||
// Third column - Timestamp
|
||||
TimeColumn
|
||||
};
|
||||
|
||||
explicit InstVersionList(QObject *parent = 0);
|
||||
|
||||
/*!
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ QString MinecraftVersion::typeName() const
|
||||
switch (versionType())
|
||||
{
|
||||
case OldSnapshot:
|
||||
return "Old Snapshot";
|
||||
return "Snapshot";
|
||||
|
||||
case Stable:
|
||||
return "Stable";
|
||||
|
Reference in New Issue
Block a user