31   cfg.insert( QStringLiteral( 
"DefaultView" ), mDefaultViewComboBox->currentIndex() );
 
   32   cfg.insert( QStringLiteral( 
"FormatJson" ), mFormatJsonComboBox->currentIndex() );
 
   39   mDefaultViewComboBox->setCurrentIndex( 
config.value( QStringLiteral( 
"DefaultView" ) ).toInt() );
 
   40   mFormatJsonComboBox->setCurrentIndex( 
config.value( QStringLiteral( 
"FormatJson" ) ).toInt() );
 
void setConfig(const QVariantMap &config) override
Update the configuration widget to represent the given configuration.
QVariantMap config() override
Create a configuration from the current GUI state.
QgsJsonEditConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr)
Constructor for QgsJsonEditWidget.
Represents a vector layer which manages a vector based data sets.