QGIS/python/core/auto_generated/project/qgsprojectutils.sip.in

44 lines
1.5 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProjectUtils
{
%Docstring(signature="appended")
Contains utility functions for working with QGIS projects.
.. versionadded:: 3.22
%End
%TypeHeaderCode
#include "qgsprojectutils.h"
%End
public:
static QList< QgsMapLayer * > layersMatchingPath( const QgsProject *project, const QString &path );
%Docstring
Returns a list of all layers in the specified ``project`` which match the given ``path``.
This method can be used to retrieve a list of layers in a project associated with a file path.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/