Render checkbox in project items

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-18 19:44:13 +00:00
parent a501441e6e
commit 5f70335a07
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
2 changed files with 29 additions and 19 deletions

View file

@ -84,6 +84,8 @@ auto ResourceModel::data(const QModelIndex& index, int role) const -> QVariant
return pack->description;
case UserDataTypes::SELECTED:
return pack->isAnyVersionSelected();
case Qt::CheckStateRole:
return pack->isAnyVersionSelected() ? Qt::Checked : Qt::Unchecked;
case UserDataTypes::INSTALLED:
return this->isPackInstalled(pack);
default: