Skip to content

Commit

Permalink
Add spacing above function editor combo. API docs for QgsLayerDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jan 19, 2015
1 parent cb409f7 commit 6166ecc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/core/qgslayerdefinition.sip
@@ -1,11 +1,21 @@
/**
* @brief The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.
*
* QLR files are an export of the layer xml including the style and datasource location. There is no link
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
* files also store the layer tree info for the exported layers, including group information.
*/
class CORE_EXPORT QgsLayerDefinition
{
%TypeHeaderCode
#include <qgslayerdefinition.h>
%End
public:
/* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/
static bool openLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
/* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */
static bool openLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ );
/* Export the selected layer tree nodes to a QLR file */
static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ );
};

4 changes: 4 additions & 0 deletions src/core/qgslayerdefinition.h
Expand Up @@ -5,6 +5,10 @@

/**
* @brief The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.
*
* QLR files are an export of the layer xml including the style and datasource location. There is no link
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
* files also store the layer tree info for the exported layers, including group information.
*/
class CORE_EXPORT QgsLayerDefinition
{
Expand Down
3 changes: 3 additions & 0 deletions src/ui/qgsexpressionbuilder.ui
Expand Up @@ -577,6 +577,9 @@
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="topMargin">
<number>3</number>
</property>
<item>
<widget class="QToolButton" name="btnRun">
<property name="text">
Expand Down

0 comments on commit 6166ecc

Please sign in to comment.