mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Implemented version lists.
This commit is contained in:
parent
69040f923b
commit
2d6e785e4e
16 changed files with 955 additions and 28 deletions
|
|
@ -13,9 +13,20 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "include/instversionlist.h"
|
||||
#include "instversionlist.h"
|
||||
#include "instversion.h"
|
||||
|
||||
InstVersionList::InstVersionList() :
|
||||
QObject(NULL)
|
||||
InstVersionList::InstVersionList(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
const InstVersion *InstVersionList::findVersion(const QString &descriptor)
|
||||
{
|
||||
for (int i = 0; i < count(); i++)
|
||||
{
|
||||
if (at(i)->descriptor() == descriptor)
|
||||
return at(i);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue