Skip to content
Permalink
Browse files
Show field alias in drag and drop designer dialogs
  • Loading branch information
m-kuhn committed Dec 21, 2012
1 parent d1795c0 commit 92877199d57b07f24200a8c2f570047fe2ac4e47
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/gui/qgsattributeeditor.cpp
@@ -990,9 +990,15 @@ QWidget* QgsAttributeEditor::createWidgetFromDef( const QgsAttributeEditorElemen
}
else
{
const QgsAttributeEditorField* fieldDef = dynamic_cast<const QgsAttributeEditorField*>( childDef );

//show attribute alias if available
QString myFieldName = vl->attributeDisplayName( fieldDef->idx() );
QLabel * mypLabel = new QLabel( myContainer );
gbLayout->addWidget( mypLabel, index, 0 );
mypLabel->setText( childDef->name() );
mypLabel->setText( myFieldName );

// add editor widget
gbLayout->addWidget( editor, index, 1 );
}

0 comments on commit 9287719

Please sign in to comment.