Skip to content
Permalink
Browse files

Translated string in the add relation dialog

  • Loading branch information
suricactus authored and nyalldawson committed Dec 23, 2020
1 parent e54a2cd commit fd099be1deab388d0e923a69c5c656d6329855b5
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/app/qgsrelationadddlg.cpp
@@ -44,13 +44,13 @@ QgsFieldPairWidget::QgsFieldPairWidget( int index, QWidget *parent )
mAddButton = new QToolButton( this );
mAddButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyAdd.svg" ) ) );
mAddButton->setMinimumWidth( 30 );
mAddButton->setToolTip( "Add new field pair as part of a composite foreign key" );
mAddButton->setToolTip( tr( "Add new field pair as part of a composite foreign key" ) );
mLayout->addWidget( mAddButton, 0, Qt::AlignLeft );

mRemoveButton = new QToolButton( this );
mRemoveButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyRemove.svg" ) ) );
mRemoveButton->setMinimumWidth( 30 );
mRemoveButton->setToolTip( "Remove the last pair of fields" );
mRemoveButton->setToolTip( tr( "Remove the last pair of fields" ) );
mLayout->addWidget( mRemoveButton, 0, Qt::AlignLeft );

mSpacerItem = new QSpacerItem( 30, 30, QSizePolicy::Minimum, QSizePolicy::Maximum );
@@ -123,7 +123,7 @@ void QgsFieldPairWidget::changeEnable()
QgsRelationAddDlg::QgsRelationAddDlg( QWidget *parent )
: QDialog( parent )
{
setWindowTitle( "Add New Relation" );
setWindowTitle( tr( "Add New Relation" ) );
QGridLayout *layout = new QGridLayout(); // column 0 is kept free for alignment purpose

// row 0: name
@@ -170,11 +170,11 @@ QgsRelationAddDlg::QgsRelationAddDlg( QWidget *parent )
layout->addWidget( strengthLabel, 5, 1 );
// col 2
mStrengthCombobox = new QComboBox( this );
mStrengthCombobox->addItem( "Association", QVariant::fromValue( QgsRelation::RelationStrength::Association ) );
mStrengthCombobox->addItem( "Composition", QVariant::fromValue( QgsRelation::RelationStrength::Composition ) );
mStrengthCombobox->setToolTip( QStringLiteral( "On composition, the child features will be duplicated too.\n"
"Duplications are made by the feature duplication action.\n"
"The default actions are activated in the Action section of the layer properties." ) );
mStrengthCombobox->addItem( tr( "Association" ), QVariant::fromValue( QgsRelation::RelationStrength::Association ) );
mStrengthCombobox->addItem( tr( "Composition" ), QVariant::fromValue( QgsRelation::RelationStrength::Composition ) );
mStrengthCombobox->setToolTip( tr( "When composition is selected the child features will be duplicated too.\n"
"Duplications are made by the feature duplication action.\n"
"The default actions are activated in the Action section of the layer properties." ) );
layout->addWidget( mStrengthCombobox, 5, 2 );

// row 6: button box

0 comments on commit fd099be

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