23   QString widgetType = 
"TextEdit"; 
    29       widgetType = 
"ValueMap";
    32       for ( 
int j = 0; j < valueMapNodes.
size(); j++ )
    43       cfg.insert( 
"Style", 
"Edit" );
    52       widgetType = 
"SliderRange";
    53       cfg.insert( 
"Style", 
"Slider" );
    62       widgetType = 
"DialRange";
    63       cfg.insert( 
"Style", 
"Dial" );
    72       widgetType = 
"CheckBox";
    73       cfg.insert( 
"CheckedState", editTypeElement.
attribute( 
"checked" ) );
    74       cfg.insert( 
"UncheckedState", editTypeElement.
attribute( 
"unchecked" ) );
    80       widgetType = 
"ValueRelation";
    81       cfg.insert( 
"AllowNull", editTypeElement.
attribute( 
"allowNull" ) == 
"true" );
    82       cfg.insert( 
"OrderByValue", editTypeElement.
attribute( 
"orderByValue" ) == 
"true" );
    83       cfg.insert( 
"AllowMulti", editTypeElement.
attribute( 
"allowMulti", 
"false" ) == 
"true" );
    85       if ( editTypeElement.
hasAttribute( 
"filterAttributeColumn" ) &&
    88         filterExpression = 
QString( 
"\"%1\"='%2'" )
    89                            .
arg( editTypeElement.
attribute( 
"filterAttributeColumn" ),
    90                                  editTypeElement.
attribute( 
"filterAttributeValue" ) );
    94         filterExpression  = editTypeElement.
attribute( 
"filterExpression", QString::null );
    96       cfg.
insert( 
"FilterExpression", filterExpression );
   106       widgetType = 
"DateTime";
   107       cfg.insert( 
"display_format", editTypeElement.
attribute( 
"dateFormat" ) );
   108       cfg.insert( 
"field_format", 
"yyyy-MM-dd" );
   114       widgetType = 
"Photo";
   115       cfg.insert( 
"Width", editTypeElement.
attribute( 
"widgetWidth" ).
toInt() );
   116       cfg.insert( 
"Height", editTypeElement.
attribute( 
"widgetHeight" ).
toInt() );
   122       widgetType = 
"WebView";
   123       cfg.insert( 
"Width", editTypeElement.
attribute( 
"widgetWidth" ).
toInt() );
   124       cfg.insert( 
"Height", editTypeElement.
attribute( 
"widgetHeight" ).
toInt() );
   130       widgetType = 
"Classification";
   136       widgetType = 
"FileName";
   142       widgetType = 
"TextEdit";
   143       cfg.insert( 
"IsMultiline", 
false );
   150       widgetType = 
"Hidden";
   156       widgetType = 
"TextEdit";
   157       cfg.insert( 
"IsMultiline", 
false );
   163       widgetType = 
"TextEdit";
   164       cfg.insert( 
"IsMultiline", 
true );
   165       cfg.insert( 
"UseHtml", 
false );
   171       widgetType = 
"Enumeration";
   177       widgetType = 
"UniqueValues";
   178       cfg.insert( 
"Editable", 
false );
   184       widgetType = 
"UniqueValues";
   185       cfg.insert( 
"Editable", 
true );
   191       widgetType = 
"UuidGenerator";
   197       widgetType = 
"Color";
   220   if ( editType == 
"Hidden" )
   225   if ( editType == 
"ValueMap" )
   230   if ( editType == 
"TextEdit" )
   232     if ( cfg.value( 
"IsMultiline" ).toBool() )
   242   if ( editType == 
"Range" )
   244     if ( cfg.value( 
"Style" ).toString() == 
"SliderRange" )
   248     else if ( cfg.value( 
"Style" ).toString() == 
"DialRange" )
   258   if ( editType == 
"UuidGenerator" )
   263   if ( editType == 
"UniqueValues" )
   265     if ( cfg.value( 
"Editable" ).toBool() )
   276   if ( editType == 
"Classification" )
   281   if ( editType == 
"CheckBox" )
   286   if ( editType == 
"DateTime" )
   291   if ( editType == 
"FileName" )
   296   if ( editType == 
"WebView" )
   301   if ( editType == 
"Photo" )
   306   if ( editType == 
"Color" )
   311   if ( editType == 
"Enumeration" )
 
QString attribute(const QString &name, const QString &defValue) const
 
The attribute value should not be changed in the attribute form. 
 
#define Q_NOWARN_DEPRECATED_PUSH
 
QDomNodeList childNodes() const
 
Q_DECL_DEPRECATED void setFieldEditable(int idx, bool editable)
Set edit widget editable. 
 
QgsFields fields() const
Returns the list of fields of this layer. 
 
QDomElement toElement() const
 
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper. 
 
QString & insert(int position, QChar ch)
 
bool hasAttribute(const QString &name) const
 
The attribute value should not be shown in the attribute form. 
 
int toInt(bool *ok, int base) const
 
Q_DECL_DEPRECATED bool fieldEditable(int idx)
Is edit widget editable. 
 
int fieldNameIndex(const QString &fieldName) const
Look up field's index from name also looks up case-insensitive if there is no match otherwise...
 
#define Q_NOWARN_DEPRECATED_POP
 
uuid generator - readonly and automatically intialized 
 
static Q_DECL_DEPRECATED const QString convertEditType(QgsVectorLayer::EditType editType, QgsEditorWidgetConfig &cfg, QgsVectorLayer *vl, const QString &name, const QDomElement &editTypeElement=QDomElement())
 
float toFloat(bool *ok) const
 
Represents a vector layer which manages a vector based data sets. 
 
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
 
int fieldNameIndex(const QString &fieldName) const
Returns the index of a field name or -1 if the field does not exist. 
 
QDomNode at(int index) const