56 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const override;
57 QModelIndex parent(
const QModelIndex &child)
const override;
59 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
60 int columnCount(
const QModelIndex &parent)
const override;
62 QVariant data(
const QModelIndex &index,
int role)
const override;
63 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
65 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
67 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
75 explicit OptContentModel(
const OCGs *optContent, QObject *parent =
nullptr);
77 friend class OptContentModelPrivate;
78 OptContentModelPrivate *d;
Model for optional content.
Definition poppler-optcontent.h:48
void applyLink(LinkOCGState *link)
Applies the Optional Content Changes specified by that link.