mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #76: Modify document, when bookmarks are changed
This commit is contained in:
@ -522,6 +522,12 @@ void PDFOutlineTreeItemModel::setDestination(const QModelIndex& index, const PDF
|
||||
}
|
||||
}
|
||||
|
||||
const PDFOutlineItem* PDFOutlineTreeItemModel::getRootOutlineItem() const
|
||||
{
|
||||
PDFOutlineTreeItem* item = static_cast<PDFOutlineTreeItem*>(m_rootItem.get());
|
||||
return item->getOutlineItem();
|
||||
}
|
||||
|
||||
bool PDFOutlineTreeItemModel::setData(const QModelIndex& index, const QVariant& value, int role)
|
||||
{
|
||||
if (!m_editable || !index.isValid() || role != Qt::EditRole)
|
||||
|
Reference in New Issue
Block a user