Skip to content
Permalink
Browse files
Editorwidgets: Default values for editable and labelOnTop
  • Loading branch information
m-kuhn committed Jun 23, 2014
1 parent c1e3c7a commit be27000db36edd5c7f4c6b73289ea150a1b57873
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/core/qgseditorwidgetregistry.cpp
@@ -155,8 +155,8 @@ void QgsEditorWidgetRegistry::readMapLayer( QgsMapLayer* mapLayer, const QDomEle
cfg = mWidgetFactories[ewv2Type]->readEditorConfig( ewv2CfgElem, vectorLayer, idx );
}

vectorLayer->setFieldEditable( idx, ewv2CfgElem.attribute( "fieldEditable" ) == "1" );
vectorLayer->setLabelOnTop( idx, ewv2CfgElem.attribute( "labelOnTop" ) == "1" );
vectorLayer->setFieldEditable( idx, ewv2CfgElem.attribute( "fieldEditable", "1" ) == "1" );
vectorLayer->setLabelOnTop( idx, ewv2CfgElem.attribute( "labelOnTop", "0" ) == "1" );
vectorLayer->setEditorWidgetV2Config( idx, cfg );
}
else

0 comments on commit be27000

Please sign in to comment.