refactor: make is_indexed false by default

Co-authored-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
Sefa Eyeoglu 2022-06-13 22:03:12 +02:00
parent a4ef0940ed
commit 4be9e6a0bc
No known key found for this signature in database
GPG Key ID: C10411294912A422
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ public:
Enable,
Toggle
};
ModFolderModel(const QString &dir, bool is_indexed);
ModFolderModel(const QString &dir, bool is_indexed = false);
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;

View File

@ -35,7 +35,7 @@
#include "ResourcePackFolderModel.h"
ResourcePackFolderModel::ResourcePackFolderModel(const QString &dir) : ModFolderModel(dir, false) {
ResourcePackFolderModel::ResourcePackFolderModel(const QString &dir) : ModFolderModel(dir) {
}
QVariant ResourcePackFolderModel::headerData(int section, Qt::Orientation orientation, int role) const {

View File

@ -35,7 +35,7 @@
#include "TexturePackFolderModel.h"
TexturePackFolderModel::TexturePackFolderModel(const QString &dir) : ModFolderModel(dir, false) {
TexturePackFolderModel::TexturePackFolderModel(const QString &dir) : ModFolderModel(dir) {
}
QVariant TexturePackFolderModel::headerData(int section, Qt::Orientation orientation, int role) const {