15#ifndef QGSGEOPDFLAYERTREEMODEL_H
16#define QGSGEOPDFLAYERTREEMODEL_H
21#include <QSortFilterProxyModel>
22#include <QItemDelegate>
51 IncludeVectorAttributes
57 int columnCount(
const QModelIndex &parent )
const override;
58 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
59 Qt::ItemFlags
flags(
const QModelIndex &idx )
const override;
60 QVariant
data(
const QModelIndex &index,
int role )
const override;
61 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
66 void checkAll(
bool checked,
const QModelIndex &parent = QModelIndex(),
int column = IncludeVectorAttributes );
70 QgsMapLayer *mapLayer(
const QModelIndex &idx )
const;
76class GUI_EXPORT QgsGeoPdfLayerFilteredTreeModel :
public QSortFilterProxyModel
83 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
Layer tree model for Geo-PDF layers.
@ InitiallyVisible
Initial visiblity state.
Map canvas is a class for displaying all GIS data types on a canvas.
The QgsMapLayerModel class is a model to display layers in widgets.
Qt::ItemFlags flags(const QModelIndex &index) const override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void checkAll(Qt::CheckState checkState)
checkAll changes the checkstate for all the layers
Base class for all map layer types.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Represents a vector layer which manages a vector based data sets.