Skip to content
Permalink
Browse files

Initial implementation

  • Loading branch information
elpaso committed Nov 4, 2015
1 parent 842753e commit 3d20081f931e70756d73df79f23b50a7f556dbbf
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/core/qgsvectorlayer.cpp
  2. +3 −3 src/core/qgsvectorlayer.h
@@ -1790,7 +1790,7 @@ bool QgsVectorLayer::readSymbology( const QDomNode& node, QString& errorMessage
QDomNode editFormInitUseCodeNode = node.namedItem( "editforminitusecode" );
if ( !editFormInitCodeNode.isNull() )
{
mEditFormInitUseCode = (bool) editFormInitUseCodeNode.toElement().text().toInt();
mEditFormInitUseCode = ( bool ) editFormInitUseCodeNode.toElement().text().toInt();
}

QDomNode fFSuppNode = node.namedItem( "featformsuppress" );
@@ -2056,7 +2056,7 @@ bool QgsVectorLayer::writeSymbology( QDomNode& node, QDomDocument& doc, QString&
node.appendChild( efiField );

QDomElement efiucField = doc.createElement( "editforminitusecode" );
efiucField.appendChild( doc.createTextNode( mEditFormInitUseCode ? "1" : "0") );
efiucField.appendChild( doc.createTextNode( mEditFormInitUseCode ? "1" : "0" ) );
node.appendChild( efiucField );

QDomElement eficField = doc.createElement( "editforminitcode" );
@@ -1638,10 +1638,10 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
void setEditFormInit( const QString& function );

/** Set python code for edit form initialization */
void setEditFormInitCode( const QString& code);
void setEditFormInitCode( const QString& code );

/** Set python code for edit form initialization */
void setEditFormInitUseCode( const bool useCode);
void setEditFormInitUseCode( const bool useCode );

/**
* Access value map
@@ -1801,7 +1801,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
*/
QgsConditionalLayerStyles *conditionalStyles() const;

public slots:
public slots:
/**
* Select feature by its ID
*

0 comments on commit 3d20081

Please sign in to comment.
You can’t perform that action at this time.