diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 10:12:29 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 10:12:29 +0300 |
commit | 54d7477679d4be05ce69dfe7d3ff21b0de46e8af (patch) | |
tree | 8a3eb84a1d352ed4c57e7f06cd9772f1de08e384 /launcher/minecraft/mod/TexturePackFolderModel.h | |
parent | ba609f3600e17704f358b28dd3d5ee14319cc98c (diff) | |
parent | bcf45c74a1b0b3389c05927637bf8aa95b8e43cf (diff) | |
download | PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.gz PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.bz2 PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into visit_mod_page
Diffstat (limited to 'launcher/minecraft/mod/TexturePackFolderModel.h')
-rw-r--r-- | launcher/minecraft/mod/TexturePackFolderModel.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/TexturePackFolderModel.h b/launcher/minecraft/mod/TexturePackFolderModel.h index 425a71e4..71a8bdd1 100644 --- a/launcher/minecraft/mod/TexturePackFolderModel.h +++ b/launcher/minecraft/mod/TexturePackFolderModel.h @@ -38,12 +38,35 @@ #include "ResourceFolderModel.h" +#include "TexturePack.h" + class TexturePackFolderModel : public ResourceFolderModel { Q_OBJECT public: + + enum Columns + { + ActiveColumn = 0, + ImageColumn, + NameColumn, + DateColumn, + NUM_COLUMNS + }; + + explicit TexturePackFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance); + + virtual QString id() const override { return "texturepacks"; } + + [[nodiscard]] QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + [[nodiscard]] QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; + [[nodiscard]] int columnCount(const QModelIndex &parent) const override; + explicit TexturePackFolderModel(const QString &dir, BaseInstance* instance); [[nodiscard]] Task* createUpdateTask() override; [[nodiscard]] Task* createParseTask(Resource&) override; + + RESOURCE_HELPERS(TexturePack) }; |