[qml] Expose map layers by name project function

This commit is contained in:
Mathieu Pellerin 2024-04-16 12:30:08 +07:00
parent 6f1f5d2ef6
commit 70ceb9d317

View File

@ -1185,7 +1185,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
* \see mapLayer() * \see mapLayer()
* \see mapLayers() * \see mapLayers()
*/ */
QList<QgsMapLayer *> mapLayersByName( const QString &layerName ) const; Q_INVOKABLE QList<QgsMapLayer *> mapLayersByName( const QString &layerName ) const;
/** /**
* Retrieves a list of matching registered layers by layer \a shortName. * Retrieves a list of matching registered layers by layer \a shortName.