Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Alway use index from name
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/gui/qgsattributeform.cpp
|
@@ -1657,10 +1657,10 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt |
|
|
newWidgetInfo.hint = fields.at( fldIdx ).comment(); |
|
|
} |
|
|
|
|
|
newWidgetInfo.labelOnTop = mLayer->editFormConfig().labelOnTop( fieldDef->idx() ); |
|
|
newWidgetInfo.labelText = mLayer->attributeDisplayName( fieldDef->idx() ); |
|
|
newWidgetInfo.labelOnTop = mLayer->editFormConfig().labelOnTop( fldIdx ); |
|
|
newWidgetInfo.labelText = mLayer->attributeDisplayName( fldIdx ); |
|
|
newWidgetInfo.labelText.replace( '&', QStringLiteral( "&&" ) ); // need to escape '&' or they'll be replace by _ in the label text |
|
|
newWidgetInfo.toolTip = QStringLiteral( "<b>%1</b><p>%2</p>" ).arg( mLayer->attributeDisplayName( fieldDef->idx() ), newWidgetInfo.hint ); |
|
|
newWidgetInfo.toolTip = QStringLiteral( "<b>%1</b><p>%2</p>" ).arg( mLayer->attributeDisplayName( fldIdx ), newWidgetInfo.hint ); |
|
|
newWidgetInfo.showLabel = widgetDef->showLabel(); |
|
|
|
|
|
break; |
|
|