We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent b31d9be commit 1d1546fCopy full SHA for 1d1546f
src/gui/qgsexpressionbuilderwidget.cpp
@@ -615,6 +615,12 @@ QString QgsExpressionBuilderWidget::formatPreviewString( const QVariant& value )
615
QgsFeature feat = value.value<QgsFeature>();
616
return tr( "<i><feature: %1></i>" ).arg( feat.id() );
617
}
618
+ else if ( value.canConvert< QgsExpression::Interval >() )
619
+ {
620
+ //result is a feature
621
+ QgsExpression::Interval interval = value.value<QgsExpression::Interval>();
622
+ return tr( "<i><interval: %1 days></i>" ).arg( interval.days() );
623
+ }
624
else
625
{
626
QString previewString = value.toString();
0 commit comments