15#ifndef QGSGEOPDFLAYERTREEMODEL_H
16#define QGSGEOPDFLAYERTREEMODEL_H
24#include <QItemDelegate>
25#include <QSortFilterProxyModel>
56 int columnCount(
const QModelIndex &parent )
const override;
57 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
58 Qt::ItemFlags
flags(
const QModelIndex &idx )
const override;
59 QVariant
data(
const QModelIndex &index,
int role )
const override;
60 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
65 void checkAll(
bool checked,
const QModelIndex &parent = QModelIndex(),
int column = IncludeVectorAttributes );
68 QgsMapLayer *mapLayer(
const QModelIndex &idx )
const;
74class GUI_EXPORT QgsGeospatialPdfLayerFilteredTreeModel :
public QSortFilterProxyModel
78 QgsGeospatialPdfLayerFilteredTreeModel( QgsGeospatialPdfLayerTreeModel *sourceModel, QObject *parent =
nullptr );
80 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
83 QgsGeospatialPdfLayerTreeModel *mLayerTreeModel =
nullptr;
Layer tree model for Geo-PDF layers.
@ InitiallyVisible
Initial visibility state.
@ IncludeVectorAttributes
Vector attribute.
QgsGeospatialPdfLayerTreeModel(const QList< QgsMapLayer * > &layers, QObject *parent=nullptr)
constructor
Map canvas is a class for displaying all GIS data types on a canvas.
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
QgsMapLayerModel(QObject *parent=nullptr, QgsProject *project=nullptr)
QgsMapLayerModel creates a model to display layers in widgets.
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 dataset.