Poppler Qt6 24.12.0
Public Member Functions | List of all members
Poppler::OptContentModel Class Reference

#include <poppler-optcontent.h>

Inheritance diagram for Poppler::OptContentModel:
Inheritance graph
[legend]
Collaboration diagram for Poppler::OptContentModel:
Collaboration graph
[legend]

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.


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