Skip to content
Permalink
Browse files

Replace empty QStringLiteral() with QString()

  • Loading branch information
suricactus authored and nyalldawson committed Mar 24, 2020
1 parent 050dfce commit 16ba6fc83e9032a02425833693b79bc9c18c5136
@@ -628,7 +628,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat

QString expressionString = fields.fieldOrigin( i ) == QgsFields::OriginExpression
? vlayer->expressionField( i )
: QStringLiteral();
: QString();
attrItem->setData( 0, Qt::DisplayRole, vlayer->attributeDisplayName( i ) );
attrItem->setToolTip( 0, QgsFieldModel::fieldToolTip( fields.at( i ), expressionString ) );
attrItem->setData( 0, Qt::UserRole, fields.at( i ).name() );
@@ -120,7 +120,7 @@ QString QgsField::displayType( const bool showConstraints ) const

typeStr += constraints().constraints() & QgsFieldConstraints::ConstraintUnique
? QStringLiteral( " UNIQUE" )
: QStringLiteral( "" );
: QString();
}

return typeStr;
@@ -626,7 +626,7 @@ QVariant QgsAttributeTableModel::headerData( int section, Qt::Orientation orient
const QgsField field = layer()->fields().at( mAttributes.at( section ) );
QString expressionString = layer()->fields().fieldOrigin( mAttributes.at( section ) ) == QgsFields::OriginExpression
? layer()->expressionField( mAttributes.at( section ) )
: QStringLiteral();
: QString();
return QgsFieldModel::fieldToolTip( field, expressionString );
}
}
@@ -1508,7 +1508,7 @@ void QgsAttributeForm::init()
// This will also create the widget
QString expressionString = fields.fieldOrigin( idx ) == QgsFields::OriginExpression
? mLayer->expressionField( idx )
: QStringLiteral();
: QString();
QLabel *l = new QLabel( labelText );
l->setToolTip( QgsFieldModel::fieldToolTip( field, expressionString ) );
QSvgWidget *i = new QSvgWidget();

0 comments on commit 16ba6fc

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