diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-03 15:48:25 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-03 15:48:25 +0100 |
commit | 6a462d0778e27379c3b22b3a1a0339093819d3cf (patch) | |
tree | 6c5f57959a2588a62f76eef33931511a6cb40788 /api/logic/minecraft/ComponentList.h | |
parent | 0a56b562864ce56d14a9657681f221e91dfba129 (diff) | |
download | MultiMC-6a462d0778e27379c3b22b3a1a0339093819d3cf.tar MultiMC-6a462d0778e27379c3b22b3a1a0339093819d3cf.tar.gz MultiMC-6a462d0778e27379c3b22b3a1a0339093819d3cf.tar.lz MultiMC-6a462d0778e27379c3b22b3a1a0339093819d3cf.tar.xz MultiMC-6a462d0778e27379c3b22b3a1a0339093819d3cf.zip |
GH-1082 allow disabling components
Currently only ones that are removable and aren't dep-only
Diffstat (limited to 'api/logic/minecraft/ComponentList.h')
-rw-r--r-- | api/logic/minecraft/ComponentList.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/logic/minecraft/ComponentList.h b/api/logic/minecraft/ComponentList.h index 7971650d..9cce111b 100644 --- a/api/logic/minecraft/ComponentList.h +++ b/api/logic/minecraft/ComponentList.h @@ -39,10 +39,18 @@ class MULTIMC_LOGIC_EXPORT ComponentList : public QAbstractListModel Q_OBJECT friend ComponentUpdateTask; public: + enum Columns + { + NameColumn = 0, + VersionColumn, + NUM_COLUMNS + }; + explicit ComponentList(MinecraftInstance * instance); virtual ~ComponentList(); virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override; virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override; virtual int columnCount(const QModelIndex &parent) const override; |