mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Actions
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user