Render checkbox in project items
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
a501441e6e
commit
5f70335a07
2 changed files with 29 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue