Skip to content

Commit 80bbed1

Browse files
committed
include qgslayerdefinition.sip in bindings
1 parent 7bdc9c1 commit 80bbed1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

python/core/core.sip

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
%Include qgsprojectfiletransform.sip
123123
%Include qgsvectorlayereditutils.sip
124124
%Include qgsvectorlayerfeatureiterator.sip
125+
%Include qgslayerdefinition.sip
125126

126127
%Include composer/qgsaddremoveitemcommand.sip
127128
%Include composer/qgsaddremovemultiframecommand.sip

python/core/qgslayerdefinition.sip

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
66
* files also store the layer tree info for the exported layers, including group information.
77
*/
8-
class CORE_EXPORT QgsLayerDefinition
8+
class QgsLayerDefinition
99
{
1010
%TypeHeaderCode
1111
#include <qgslayerdefinition.h>
1212
%End
13-
public:
14-
/* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/
15-
static bool openLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
16-
/* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */
17-
static bool openLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
18-
/* Export the selected layer tree nodes to a QLR file */
19-
static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ );
13+
public:
14+
/* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/
15+
static bool loadLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
16+
/* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */
17+
static bool loadLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
18+
/* Export the selected layer tree nodes to a QLR file */
19+
static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ );
2020
};
2121

0 commit comments

Comments
 (0)