File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1654,13 +1654,13 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
1654
1654
addWidgetWrapper ( eww );
1655
1655
1656
1656
newWidgetInfo.widget ->setObjectName ( fields.at ( fldIdx ).name () );
1657
- newWidgetInfo.hint = fields.at ( fieldDef-> idx () ).comment ();
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