File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -690,6 +690,10 @@ void QgsPropertyOverrideButton::updateGui()
690
690
icon = QgsApplication::getThemeIcon ( QStringLiteral ( " /mIconDataDefineExpressionError.svg" ) );
691
691
deftip = tr ( " Parse error: %1" ).arg ( exp .parserErrorString () );
692
692
}
693
+ else
694
+ {
695
+ deftip = mExpressionString ;
696
+ }
693
697
}
694
698
else if ( mProperty .propertyType () != QgsProperty::ExpressionBasedProperty && hasField )
695
699
{
@@ -700,6 +704,10 @@ void QgsPropertyOverrideButton::updateGui()
700
704
icon = QgsApplication::getThemeIcon ( QStringLiteral ( " /mIconDataDefineError.svg" ) );
701
705
deftip = tr ( " '%1' field missing" ).arg ( mFieldName );
702
706
}
707
+ else
708
+ {
709
+ deftip = mFieldName ;
710
+ }
703
711
}
704
712
705
713
setIcon ( icon );
@@ -724,7 +732,7 @@ void QgsPropertyOverrideButton::updateGui()
724
732
mFullDescription += tr ( " <b>Valid input types:</b><br>%1<br>" ).arg ( mDataTypesString );
725
733
}
726
734
727
- QString deftype ( QLatin1String ( " " ) ) ;
735
+ QString deftype;
728
736
if ( deftip != tr ( " undefined" ) )
729
737
{
730
738
deftype = QStringLiteral ( " (%1)" ).arg ( mProperty .propertyType () == QgsProperty::ExpressionBasedProperty ? tr ( " expression" ) : tr ( " field" ) );
You can’t perform that action at this time.
0 commit comments