Skip to content
Permalink
Browse files

Show field alias in tooltip in form editor tab

(cherry-picked from 9a1f129)
  • Loading branch information
nyalldawson committed Aug 13, 2018
1 parent 8e53a65 commit d5fd78cf20bebed8e3b94eae98f0fc7d39a5f468
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgsattributesformproperties.cpp
@@ -105,6 +105,13 @@ void QgsAttributesFormProperties::initAvailableWidgetsTree()

item->setData( 0, FieldConfigRole, cfg );
item->setData( 0, FieldNameRole, field.name() );

QString tooltip;
if ( !field.alias().isEmpty() )
tooltip = tr( "%1 (%2)" ).arg( field.name(), field.alias() );
else
tooltip = field.name();
item->setToolTip( 0, tooltip );
}
catitem->setExpanded( true );

0 comments on commit d5fd78c

Please sign in to comment.
You can’t perform that action at this time.