Poppler Qt5 24.05.0
Public Member Functions | List of all members
Poppler::OptContentModel Class Reference

#include <poppler-optcontent.h>

Inheritance diagram for Poppler::OptContentModel:
Inheritance graph
Collaboration diagram for Poppler::OptContentModel:
Collaboration graph

Public Member Functions

void applyLink (LinkOCGState *link)
int columnCount (const QModelIndex &parent) const override
QVariant data (const QModelIndex &index, int role) const override
Qt::ItemFlags flags (const QModelIndex &index) const override
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
QModelIndex index (int row, int column, const QModelIndex &parent) const override
QModelIndex parent (const QModelIndex &child) const override
int rowCount (const QModelIndex &parent=QModelIndex()) const override
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override

Detailed Description

Model for optional content.

OptContentModel is an item model representing the optional content items that can be found in PDF documents.

The model offers a mostly read-only display of the data, allowing to enable/disable some contents setting the Qt::CheckStateRole data role.


Member Function Documentation

◆ applyLink()

void Poppler::OptContentModel::applyLink ( LinkOCGState link)

Applies the Optional Content Changes specified by that link.


The documentation for this class was generated from the following file: