49 configElement.
setAttribute(
"IsMultiline", config.value(
"IsMultiline",
false ).toBool() );
50 configElement.
setAttribute(
"UseHtml", config.value(
"UseHtml",
false ).toBool() );
60 cfg.insert(
"IsMultiline", configElement.
attribute(
"IsMultiline",
"0" ) ==
"1" );
61 cfg.insert(
"UseHtml", configElement.
attribute(
"UseHtml",
"0" ) ==
"1" );
QString attribute(const QString &name, const QString &defValue) const
QgsEditorConfigWidget * configWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
Override this in your implementation.
QgsEditorWidgetWrapper * create(QgsVectorLayer *vl, int fieldIdx, QWidget *editor, QWidget *parent) const override
Override this in your implementation.
void writeConfig(const QgsEditorWidgetConfig &config, QDomElement &configElement, QDomDocument &doc, const QgsVectorLayer *layer, int fieldIdx) override
Serialize your configuration and save it in a xml doc.
QgsSearchWidgetWrapper * createSearchWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
By default a simple QgsFilterLineEdit is returned as search widget.
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper.
void setAttribute(const QString &name, const QString &value)
QgsTextEditWidgetFactory(const QString &name)
Wraps a text edit widget for searching.
Represents a vector layer which manages a vector based data sets.