Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 4, 2015
1 parent 842753e commit 3d20081
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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" );
Expand Down Expand Up @@ -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" );
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsvectorlayer.h
Expand Up @@ -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
Expand Down Expand Up @@ -1801,7 +1801,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
*/
QgsConditionalLayerStyles *conditionalStyles() const;

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

0 comments on commit 3d20081

Please sign in to comment.