17#include "moc_qgsjsoneditconfigdlg.cpp"
32 cfg.insert( QStringLiteral(
"DefaultView" ), mDefaultViewComboBox->currentIndex() );
33 cfg.insert( QStringLiteral(
"FormatJson" ), mFormatJsonComboBox->currentIndex() );
40 mDefaultViewComboBox->setCurrentIndex(
config.value( QStringLiteral(
"DefaultView" ) ).toInt() );
41 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.