QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
A layer tree view for elevation profiles. More...
#include <qgselevationprofilelayertreeview.h>
Signals | |
void | addLayers (const QList< QgsMapLayer * > &layers) |
Emitted when layers should be added to the profile, e.g. More... | |
Public Member Functions | |
QgsElevationProfileLayerTreeView (QgsLayerTree *rootNode, QWidget *parent=nullptr) | |
Construct a new tree view with given layer tree (root node must not be nullptr ). More... | |
QgsMapLayer * | indexToLayer (const QModelIndex &index) |
Converts a view index to a map layer. More... | |
void | populateInitialLayers (QgsProject *project) |
Initially populates the tree view using layers from a project. More... | |
QgsElevationProfileLayerTreeProxyModel * | proxyModel () |
Returns the view's proxy model. More... | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) override |
A layer tree view for elevation profiles.
Definition at line 120 of file qgselevationprofilelayertreeview.h.
|
explicit |
Construct a new tree view with given layer tree (root node must not be nullptr
).
The root node is not transferred by the view.
Definition at line 413 of file qgselevationprofilelayertreeview.cpp.
|
signal |
Emitted when layers should be added to the profile, e.g.
via a drag and drop action.
QgsMapLayer * QgsElevationProfileLayerTreeView::indexToLayer | ( | const QModelIndex & | index | ) |
Converts a view index to a map layer.
Definition at line 440 of file qgselevationprofilelayertreeview.cpp.
void QgsElevationProfileLayerTreeView::populateInitialLayers | ( | QgsProject * | project | ) |
Initially populates the tree view using layers from a project.
Definition at line 452 of file qgselevationprofilelayertreeview.cpp.
QgsElevationProfileLayerTreeProxyModel * QgsElevationProfileLayerTreeView::proxyModel | ( | ) |
Returns the view's proxy model.
Definition at line 483 of file qgselevationprofilelayertreeview.cpp.
|
overrideprotected |
Definition at line 488 of file qgselevationprofilelayertreeview.cpp.