22   connect( editableUniqueValues, SIGNAL( toggled( 
bool ) ), 
this, SIGNAL( 
changed() ) );
    30   cfg.insert( 
"Editable", editableUniqueValues->isChecked() );
    37   editableUniqueValues->setChecked( config.value( 
"Editable", 
false ).toBool() );
 
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper. 
QgsEditorWidgetConfig config() override
Create a configuration from the current GUI state. 
void setConfig(const QgsEditorWidgetConfig &config) override
Update the configuration widget to represent the given configuration. 
QgsUniqueValuesConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.