20#include "moc_qgsjsoneditconfigdlg.cpp"
22using namespace Qt::StringLiterals;
37 cfg.insert( u
"DefaultView"_s, mDefaultViewComboBox->currentIndex() );
38 cfg.insert( u
"FormatJson"_s, mFormatJsonComboBox->currentIndex() );
45 mDefaultViewComboBox->setCurrentIndex(
config.value( u
"DefaultView"_s ).toInt() );
46 mFormatJsonComboBox->setCurrentIndex(
config.value( u
"FormatJson"_s ).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 dataset.