This commit is contained in:
Jakub Melka
2021-07-08 13:48:27 +02:00
parent 01f97028ed
commit 461f4544a3
6 changed files with 208 additions and 2 deletions

View File

@@ -125,6 +125,22 @@ const PageGroupItem* PageItemModel::getItem(const QModelIndex& index) const
return nullptr;
}
bool PageItemModel::isGrouped(const QModelIndexList& indices) const
{
for (const QModelIndex& index : indices)
{
if (const PageGroupItem* item = getItem(index))
{
if (item->isGrouped())
{
return true;
}
}
}
return false;
}
void PageItemModel::createDocumentGroup(int index)
{
const DocumentItem& item = m_documents.at(index);