mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-07 05:46:58 +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
|
|
@ -41,6 +41,11 @@ class LIBMULTIMC_EXPORT InstVersionList : public QAbstractListModel
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum ModelRoles
|
||||
{
|
||||
VersionPointerRole = 0x34B1CB48
|
||||
};
|
||||
|
||||
explicit InstVersionList(QObject *parent = 0);
|
||||
|
||||
/*!
|
||||
|
|
@ -75,6 +80,13 @@ public:
|
|||
* one doesn't exist.
|
||||
*/
|
||||
virtual const InstVersion *findVersion(const QString &descriptor);
|
||||
|
||||
/*!
|
||||
* \brief Gets the latest stable version of this instance type.
|
||||
* This is the version that will be selected by default.
|
||||
* By default, this is simply the first version in the list.
|
||||
*/
|
||||
virtual const InstVersion *getLatestStable();
|
||||
};
|
||||
|
||||
#endif // INSTVERSIONLIST_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue