28 cfg.
insert(
"Height", sbWidgetHeight->value() );
29 cfg.
insert(
"Width", sbWidgetWidth->value() );
36 sbWidgetHeight->setValue( config.
value(
"Height", 0 ).toInt() );
37 sbWidgetWidth->setValue( config.
value(
"Width", 0 ).toInt() );
QgsPhotoConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=0)
void setConfig(const QgsEditorWidgetConfig &config) override
Update the configuration widget to represent the given configuration.
QgsEditorWidgetConfig config() override
Create a configuration from the current GUI state.
iterator insert(const Key &key, const T &value)
Represents a vector layer which manages a vector based data sets.
const T value(const Key &key) const