added new folder capability in collection

This commit is contained in:
csoler 2024-03-14 22:44:49 +01:00
parent 27f0962654
commit a36f7221e7
6 changed files with 49 additions and 12 deletions

View file

@ -438,6 +438,15 @@ QVariant RsCollectionModel::decorationRole(const EntryIndex& i,int col) const
return QVariant();
}
RsCollectionModel::EntryIndex RsCollectionModel::getIndex(const QModelIndex& i) const
{
EntryIndex res;
res.is_file = false;
res.index = 0;
convertInternalIdToIndex(i.internalId(),res);
return res;
}
bool RsCollectionModel::isChecked(EntryIndex i)
{
if(i.is_file)