Skip to content

Commit

Permalink
all caps NOT NULL and UNIQUE
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jul 15, 2021
1 parent c2f0a67 commit eaa3e52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/browser/qgsfieldsitem.cpp
Expand Up @@ -152,11 +152,11 @@ QgsFieldItem::QgsFieldItem( QgsDataItem *parent, const QgsField &field )
QStringList constraintsText;
if ( constraints.testFlag( QgsFieldConstraints::Constraint::ConstraintNotNull ) )
{
constraintsText.push_back( tr( "Not Null" ) );
constraintsText.push_back( tr( "NOT NULL" ) );
}
if ( constraints.testFlag( QgsFieldConstraints::Constraint::ConstraintUnique ) )
{
constraintsText.push_back( tr( "Unique" ) );
constraintsText.push_back( tr( "UNIQUE" ) );
}
if ( ! constraintsText.isEmpty() )
{
Expand Down Expand Up @@ -203,4 +203,3 @@ QIcon QgsFieldItem::icon()
return icon;
}


0 comments on commit eaa3e52

Please sign in to comment.