QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
A layer tree view for elevation profiles. More...
#include <qgselevationprofilelayertreeview.h>
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... | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) override |
A layer tree view for elevation profiles.
Definition at line 107 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 334 of file qgselevationprofilelayertreeview.cpp.
QgsMapLayer * QgsElevationProfileLayerTreeView::indexToLayer | ( | const QModelIndex & | index | ) |
Converts a view index to a map layer.
Definition at line 360 of file qgselevationprofilelayertreeview.cpp.
void QgsElevationProfileLayerTreeView::populateInitialLayers | ( | QgsProject * | project | ) |
Initially populates the tree view using layers from a project.
Definition at line 372 of file qgselevationprofilelayertreeview.cpp.
|
overrideprotected |
Definition at line 395 of file qgselevationprofilelayertreeview.cpp.