DocPage Organizer: Clear action

This commit is contained in:
Jakub Melka
2021-07-11 18:18:34 +02:00
parent 8442143efc
commit fd67f8f898
8 changed files with 188 additions and 5 deletions

View File

@@ -548,4 +548,13 @@ Qt::ItemFlags PageItemModel::flags(const QModelIndex& index) const
return flags;
}
void PageItemModel::clear()
{
beginResetModel();
m_pageGroupItems.clear();
m_documents.clear();
m_trashBin.clear();
endResetModel();
}
} // namespace pdfdocpage