make the update column as a icon

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2025-12-12 02:54:14 +02:00
parent abec40af7f
commit 18f04b1e29
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
6 changed files with 61 additions and 11 deletions

View file

@ -97,8 +97,10 @@ QVariant ResourcePackFolderModel::data(const QModelIndex& index, int role) const
case Qt::CheckStateRole:
if (column == ActiveColumn) {
return at(row).enabled() ? Qt::Checked : Qt::Unchecked;
} else if (column == LockUpdateCoumn) {
return !at(row).lockUpdate() ? Qt::Checked : Qt::Unchecked;
}
case Qt::UserRole:
if (column == LockUpdateCoumn) {
return at(row).lockUpdate();
}
return {};
default: