18#ifndef QGSELEVATIONPROFILELAYERTREEVIEW_H
19#define QGSELEVATIONPROFILELAYERTREEVIEW_H
25#include <QSortFilterProxyModel>
58 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
59 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
61 bool canDropMimeData(
const QMimeData *data, Qt::DropAction action,
62 int row,
int column,
const QModelIndex &parent )
const override;
63 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
64 QMimeData *
mimeData(
const QModelIndexList &indexes )
const override;
73 void addLayers(
const QList< QgsMapLayer * > &layers );
104 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
136 QgsMapLayer *indexToLayer(
const QModelIndex &index );
141 void populateInitialLayers(
QgsProject *project );
161 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,...