File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1657,10 +1657,10 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
1657
1657
newWidgetInfo.hint = fields.at ( fldIdx ).comment ();
1658
1658
}
1659
1659
1660
- newWidgetInfo.labelOnTop = mLayer ->editFormConfig ().labelOnTop ( fieldDef-> idx () );
1661
- newWidgetInfo.labelText = mLayer ->attributeDisplayName ( fieldDef-> idx () );
1660
+ newWidgetInfo.labelOnTop = mLayer ->editFormConfig ().labelOnTop ( fldIdx );
1661
+ newWidgetInfo.labelText = mLayer ->attributeDisplayName ( fldIdx );
1662
1662
newWidgetInfo.labelText .replace ( ' &' , QStringLiteral ( " &&" ) ); // need to escape '&' or they'll be replace by _ in the label text
1663
- newWidgetInfo.toolTip = QStringLiteral ( " <b>%1</b><p>%2</p>" ).arg ( mLayer ->attributeDisplayName ( fieldDef-> idx () ), newWidgetInfo.hint );
1663
+ newWidgetInfo.toolTip = QStringLiteral ( " <b>%1</b><p>%2</p>" ).arg ( mLayer ->attributeDisplayName ( fldIdx ), newWidgetInfo.hint );
1664
1664
newWidgetInfo.showLabel = widgetDef->showLabel ();
1665
1665
1666
1666
break ;
You can’t perform that action at this time.
0 commit comments