mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix indentation
This commit is contained in:
parent
4caa254058
commit
323a9a46c2
@ -633,7 +633,7 @@ void QgsExpressionBuilderWidget::loadRecent( const QString &collection )
|
||||
int i = 0;
|
||||
for ( const QString &expression : expressions )
|
||||
{
|
||||
QString help = formatRecentExpressionHelp(expression, expression);
|
||||
QString help = formatRecentExpressionHelp( expression, expression );
|
||||
registerItem( name, expression, expression, help, QgsExpressionItem::ExpressionNode, false, i );
|
||||
i++;
|
||||
}
|
||||
@ -940,11 +940,11 @@ void QgsExpressionBuilderWidget::registerItemForAllGroups( const QStringList &gr
|
||||
QString QgsExpressionBuilderWidget::formatRelationHelp( const QgsRelation &relation ) const
|
||||
{
|
||||
QString text = QStringLiteral( "<h3>%1</h3>\n<div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( QCoreApplication::translate( "relation_help", "relation %1" ).arg( relation.name() ),
|
||||
tr( "Inserts the relation ID for the relation named '%1'." ).arg( relation.name() ) );
|
||||
.arg( QCoreApplication::translate( "relation_help", "relation %1" ).arg( relation.name() ),
|
||||
tr( "Inserts the relation ID for the relation named '%1'." ).arg( relation.name() ) );
|
||||
|
||||
text += QStringLiteral( "<h4>%1</h4><div class=\"description\"><pre>%2</pre></div>" )
|
||||
.arg( tr( "Current value" ), relation.id() );
|
||||
.arg( tr( "Current value" ), relation.id() );
|
||||
|
||||
return text;
|
||||
}
|
||||
@ -952,11 +952,11 @@ QString QgsExpressionBuilderWidget::formatRelationHelp( const QgsRelation &relat
|
||||
QString QgsExpressionBuilderWidget::formatLayerHelp( const QgsMapLayer *layer ) const
|
||||
{
|
||||
QString text = QStringLiteral( "<h3>%1</h3>\n<div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( QCoreApplication::translate( "layer_help", "map layer %1" ).arg( layer->name() ),
|
||||
tr( "Inserts the layer ID for the layer named '%1'." ).arg( layer->name() ) );
|
||||
.arg( QCoreApplication::translate( "layer_help", "map layer %1" ).arg( layer->name() ),
|
||||
tr( "Inserts the layer ID for the layer named '%1'." ).arg( layer->name() ) );
|
||||
|
||||
text += QStringLiteral( "<h4>%1</h4><div class=\"description\"><pre>%2</pre></div>" )
|
||||
.arg( tr( "Current value" ), layer->id() );
|
||||
.arg( tr( "Current value" ), layer->id() );
|
||||
|
||||
return text;
|
||||
}
|
||||
@ -964,11 +964,11 @@ QString QgsExpressionBuilderWidget::formatLayerHelp( const QgsMapLayer *layer )
|
||||
QString QgsExpressionBuilderWidget::formatRecentExpressionHelp( const QString &label, const QString &expression ) const
|
||||
{
|
||||
QString text = QStringLiteral( "<h3>%1</h3>\n<div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( QCoreApplication::translate( "recent_expression_help", "expression %1" ).arg( label),
|
||||
QCoreApplication::translate( "recent_expression_help", "Recently used expression." ) );
|
||||
.arg( QCoreApplication::translate( "recent_expression_help", "expression %1" ).arg( label ),
|
||||
QCoreApplication::translate( "recent_expression_help", "Recently used expression." ) );
|
||||
|
||||
text += QStringLiteral( "<h4>%1</h4><div class=\"description\"><pre>%2</pre></div>" )
|
||||
.arg( tr( "Expression" ), expression );
|
||||
.arg( tr( "Expression" ), expression );
|
||||
|
||||
return text;
|
||||
}
|
||||
@ -976,10 +976,10 @@ QString QgsExpressionBuilderWidget::formatRecentExpressionHelp( const QString &l
|
||||
QString QgsExpressionBuilderWidget::formatUserExpressionHelp( const QString &label, const QString &expression, const QString &description ) const
|
||||
{
|
||||
QString text = QStringLiteral( "<h3>%1</h3>\n<div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( QCoreApplication::translate( "user_expression_help", "expression %1" ).arg( label ), description );
|
||||
.arg( QCoreApplication::translate( "user_expression_help", "expression %1" ).arg( label ), description );
|
||||
|
||||
text += QStringLiteral( "<h4>%1</h4><div class=\"description\"><pre>%2</pre></div>" )
|
||||
.arg( tr( "Expression" ), expression );
|
||||
.arg( tr( "Expression" ), expression );
|
||||
|
||||
return text;
|
||||
}
|
||||
@ -987,16 +987,16 @@ QString QgsExpressionBuilderWidget::formatUserExpressionHelp( const QString &lab
|
||||
QString QgsExpressionBuilderWidget::formatVariableHelp( const QString &variable, const QString &description, bool showValue, const QVariant &value ) const
|
||||
{
|
||||
QString text = QStringLiteral( "<h3>%1</h3>\n<div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( QCoreApplication::translate( "variable_help", "variable %1" ).arg( variable ), description );
|
||||
.arg( QCoreApplication::translate( "variable_help", "variable %1" ).arg( variable ), description );
|
||||
|
||||
if ( showValue )
|
||||
{
|
||||
QString valueString = !value.isValid()
|
||||
? QCoreApplication::translate( "variable_help", "not set" )
|
||||
: QStringLiteral( "<pre>%1</pre>" ).arg( QgsExpression::formatPreviewString( value ) );
|
||||
? QCoreApplication::translate( "variable_help", "not set" )
|
||||
: QStringLiteral( "<pre>%1</pre>" ).arg( QgsExpression::formatPreviewString( value ) );
|
||||
|
||||
text += QStringLiteral( "<h4>%1</h4><div class=\"description\"><p>%2</p></div>" )
|
||||
.arg( tr( "Current value" ), valueString);
|
||||
.arg( tr( "Current value" ), valueString );
|
||||
}
|
||||
|
||||
return text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user