@@ -44,6 +44,7 @@ QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg( QgsVectorLayer *vl
44
44
connect ( mCbxAllowNull , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
45
45
connect ( mCbxOrderByValue , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
46
46
connect ( mCbxShowForm , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
47
+ connect ( mCbxShowOpenFormButton , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
47
48
connect ( mCbxMapIdentification , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
48
49
connect ( mCbxReadOnly , &QAbstractButton::toggled, this , &QgsEditorConfigWidget::changed );
49
50
connect ( mComboRelation , static_cast <void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this , &QgsEditorConfigWidget::changed );
@@ -59,6 +60,7 @@ void QgsRelationReferenceConfigDlg::setConfig( const QVariantMap &config )
59
60
mCbxAllowNull ->setChecked ( config.value ( QStringLiteral ( " AllowNULL" ), false ).toBool () );
60
61
mCbxOrderByValue ->setChecked ( config.value ( QStringLiteral ( " OrderByValue" ), false ).toBool () );
61
62
mCbxShowForm ->setChecked ( config.value ( QStringLiteral ( " ShowForm" ), false ).toBool () );
63
+ mCbxShowOpenFormButton ->setChecked ( config.value ( QStringLiteral ( " ShowOpenFormButton" ), true ).toBool () );
62
64
63
65
if ( config.contains ( QStringLiteral ( " Relation" ) ) )
64
66
{
@@ -121,6 +123,7 @@ QVariantMap QgsRelationReferenceConfigDlg::config()
121
123
myConfig.insert ( QStringLiteral ( " AllowNULL" ), mCbxAllowNull ->isChecked () );
122
124
myConfig.insert ( QStringLiteral ( " OrderByValue" ), mCbxOrderByValue ->isChecked () );
123
125
myConfig.insert ( QStringLiteral ( " ShowForm" ), mCbxShowForm ->isChecked () );
126
+ myConfig.insert ( QStringLiteral ( " ShowOpenFormButton" ), mCbxShowOpenFormButton ->isChecked () );
124
127
myConfig.insert ( QStringLiteral ( " MapIdentification" ), mCbxMapIdentification ->isEnabled () && mCbxMapIdentification ->isChecked () );
125
128
myConfig.insert ( QStringLiteral ( " ReadOnly" ), mCbxReadOnly ->isChecked () );
126
129
myConfig.insert ( QStringLiteral ( " Relation" ), mComboRelation ->currentData () );
0 commit comments