diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-15 18:10:51 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-15 18:13:46 +0100 |
commit | dd9e04000ccd02a868138de9276f8fb93b855550 (patch) | |
tree | 496985ef1c0d0d1ba724948b87aaf641a78c624b /logic/lists/InstanceList.h | |
parent | 5a3043398e45cbe39455609a42463f2e6e5d3fd2 (diff) | |
download | MultiMC-dd9e04000ccd02a868138de9276f8fb93b855550.tar MultiMC-dd9e04000ccd02a868138de9276f8fb93b855550.tar.gz MultiMC-dd9e04000ccd02a868138de9276f8fb93b855550.tar.lz MultiMC-dd9e04000ccd02a868138de9276f8fb93b855550.tar.xz MultiMC-dd9e04000ccd02a868138de9276f8fb93b855550.zip |
Improve group changing, update instance on version change
Gives a list of existing groups to choose from.
Instances are updated as long as there is at least one valid account.
Diffstat (limited to 'logic/lists/InstanceList.h')
-rw-r--r-- | logic/lists/InstanceList.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/lists/InstanceList.h b/logic/lists/InstanceList.h index c3bb74cd..f23b7763 100644 --- a/logic/lists/InstanceList.h +++ b/logic/lists/InstanceList.h @@ -17,6 +17,7 @@ #include <QObject> #include <QAbstractListModel> +#include <QSet> #include "categorizedsortfilterproxymodel.h" #include <QIcon> @@ -97,6 +98,9 @@ public: InstancePtr getInstanceById(QString id) const; QModelIndex getInstanceIndexById(const QString &id) const; + + // FIXME: instead of iterating through all instances and forming a set, keep the set around + QStringList getGroups(); signals: void dataIsInvalid(); @@ -116,6 +120,7 @@ private: protected: QString m_instDir; QList<InstancePtr> m_instances; + QSet<QString> m_groups; }; class InstanceProxyModel : public KCategorizedSortFilterProxyModel |