aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/TexturePackFolderModel.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-24 20:15:34 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-24 20:15:34 -0700
commit086a7e19f099c6c9b9529afb2360300e534876bf (patch)
tree1ab5d7313e406ef8e07091a528792d17fbc7149f /launcher/minecraft/mod/TexturePackFolderModel.h
parent74e7c13a177afdb503a642cb9c97d71e72249291 (diff)
downloadPrismLauncher-086a7e19f099c6c9b9529afb2360300e534876bf.tar.gz
PrismLauncher-086a7e19f099c6c9b9529afb2360300e534876bf.tar.bz2
PrismLauncher-086a7e19f099c6c9b9529afb2360300e534876bf.zip
feat: Column on left, hideable
- columns are hideable (saves to settings) - image column moved to left - datamodals can provide resize modes Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/TexturePackFolderModel.h')
-rw-r--r--launcher/minecraft/mod/TexturePackFolderModel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/TexturePackFolderModel.h b/launcher/minecraft/mod/TexturePackFolderModel.h
index 4467691a..ce9c06c4 100644
--- a/launcher/minecraft/mod/TexturePackFolderModel.h
+++ b/launcher/minecraft/mod/TexturePackFolderModel.h
@@ -49,14 +49,16 @@ public:
enum Columns
{
ActiveColumn = 0,
+ ImageColumn,
NameColumn,
DateColumn,
- ImageColumn,
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;