mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
Change the OneSix library view. It now shows a list of patches.
This commit is contained in:
@@ -32,6 +32,7 @@ public:
|
||||
explicit OneSixVersion(OneSixInstance *instance, QObject *parent = 0);
|
||||
|
||||
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
virtual int columnCount(const QModelIndex &parent) const;
|
||||
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
@@ -41,6 +42,12 @@ public:
|
||||
|
||||
void dump() const;
|
||||
|
||||
bool canRemove(const int index) const;
|
||||
|
||||
public
|
||||
slots:
|
||||
bool remove(const int index);
|
||||
|
||||
public:
|
||||
QList<std::shared_ptr<OneSixLibrary>> getActiveNormalLibs();
|
||||
QList<std::shared_ptr<OneSixLibrary>> getActiveNativeLibs();
|
||||
@@ -109,6 +116,16 @@ public:
|
||||
*/
|
||||
// QList<Rule> rules;
|
||||
|
||||
struct VersionFile
|
||||
{
|
||||
QString name;
|
||||
QString id;
|
||||
QString version;
|
||||
QString mcVersion;
|
||||
QString filename;
|
||||
};
|
||||
QList<VersionFile> versionFiles;
|
||||
|
||||
private:
|
||||
OneSixInstance *m_instance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user