Skip to content

Commit 6166ecc

Browse files
committedJan 19, 2015
Add spacing above function editor combo. API docs for QgsLayerDefinition
1 parent cb409f7 commit 6166ecc

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
 

‎python/core/qgslayerdefinition.sip‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
/**
2+
* @brief The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.
3+
*
4+
* QLR files are an export of the layer xml including the style and datasource location. There is no link
5+
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
6+
* files also store the layer tree info for the exported layers, including group information.
7+
*/
18
class CORE_EXPORT QgsLayerDefinition
29
{
310
%TypeHeaderCode
411
#include <qgslayerdefinition.h>
512
%End
613
public:
14+
/* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/
715
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 */
817
static bool openLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
18+
/* Export the selected layer tree nodes to a QLR file */
919
static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ );
1020
};
1121

‎src/core/qgslayerdefinition.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
/**
77
* @brief The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.
8+
*
9+
* QLR files are an export of the layer xml including the style and datasource location. There is no link
10+
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
11+
* files also store the layer tree info for the exported layers, including group information.
812
*/
913
class CORE_EXPORT QgsLayerDefinition
1014
{

‎src/ui/qgsexpressionbuilder.ui‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@
577577
<property name="sizeConstraint">
578578
<enum>QLayout::SetDefaultConstraint</enum>
579579
</property>
580+
<property name="topMargin">
581+
<number>3</number>
582+
</property>
580583
<item>
581584
<widget class="QToolButton" name="btnRun">
582585
<property name="text">

0 commit comments

Comments
 (0)
Please sign in to comment.