mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix dependency inconsistency to project from QgsRelationManager by forcing 'QgsRelation::createFromXml' to rely on project passed to 'QgsRelationManager' instead of using 'QgisProject::instance()'
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsrelationcontext.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRelationContext
|
|
{
|
|
%Docstring
|
|
Context for relations. Used to resolve layers from projects.
|
|
|
|
.. versionadded:: 3.11
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsrelationcontext.h"
|
|
%End
|
|
public:
|
|
|
|
QgsRelationContext( QgsProject *project = 0 );
|
|
%Docstring
|
|
Constructor for QgsRelationContext.
|
|
%End
|
|
|
|
const QgsProject *project() const;
|
|
%Docstring
|
|
Gets the associated project
|
|
|
|
If there is no associated project, then it will return the global
|
|
project instance
|
|
%End
|
|
|
|
~QgsRelationContext();
|
|
|
|
QgsRelationContext( const QgsRelationContext &other );
|
|
%Docstring
|
|
Copy constructor
|
|
%End
|
|
|
|
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsrelationcontext.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|