mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Make the new instance dialog support instance types.
This commit is contained in:
parent
7ec32d5657
commit
ff3078b3a6
8 changed files with 177 additions and 0 deletions
|
|
@ -31,6 +31,14 @@ const InstVersion *InstVersionList::findVersion(const QString &descriptor)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const InstVersion *InstVersionList::getLatestStable()
|
||||
{
|
||||
if (count() <= 0)
|
||||
return NULL;
|
||||
else
|
||||
return at(0);
|
||||
}
|
||||
|
||||
// Column Enum
|
||||
enum VListColumns
|
||||
{
|
||||
|
|
@ -73,6 +81,9 @@ QVariant InstVersionList::data(const QModelIndex &index, int role) const
|
|||
case Qt::ToolTipRole:
|
||||
return version->descriptor();
|
||||
|
||||
case VersionPointerRole:
|
||||
return qVariantFromValue((void *) version);
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue