18#ifndef QGSELEVATIONPROFILELAYERTREEVIEW_H
19#define QGSELEVATIONPROFILELAYERTREEVIEW_H
25#include <QSortFilterProxyModel>
56 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
57 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
59 bool canDropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
const override;
60 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
61 QMimeData *
mimeData(
const QModelIndexList &indexes )
const override;
70 void addLayers(
const QList<QgsMapLayer *> &layers );
97 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
125 QgsMapLayer *indexToLayer(
const QModelIndex &index );
130 void populateInitialLayers(
QgsProject *project );
149 void resizeEvent( QResizeEvent *event )
override;
A layer tree model subclass for elevation profiles.
void addLayers(const QList< QgsMapLayer * > &layers)
Emitted when layers should be added to the profile, e.g.
A proxy model for elevation profiles.
A layer tree view for elevation profiles.
void addLayers(const QList< QgsMapLayer * > &layers)
Emitted when layers should be added to the profile, e.g.
The QgsLayerTreeModel class is model implementation for Qt item views framework.
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
QMimeData * mimeData(const QModelIndexList &indexes) const override
Namespace with helper functions for layer tree operations.
Base class for all map layer types.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...