Skip to content

Commit 16e39bc

Browse files
committedMar 25, 2015
include qgslayerdefinition.sip in bindings
(cherry picked from commit 80bbed1)
1 parent aa97751 commit 16e39bc

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed
 

‎python/core/core.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
%Include qgsprojectfiletransform.sip
121121
%Include qgsvectorlayereditutils.sip
122122
%Include qgsvectorlayerfeatureiterator.sip
123+
%Include qgslayerdefinition.sip
123124

124125
%Include composer/qgsaddremoveitemcommand.sip
125126
%Include composer/qgsaddremovemultiframecommand.sip

‎python/core/qgslayerdefinition.sip

Lines changed: 8 additions & 8 deletions
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)